8000 Fix alignment warning by mubes · Pull Request #2618 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content

Fix alignment warning #2618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 18, 2020
Merged

Fix alignment warning #2618

merged 3 commits into from
Feb 18, 2020

Conversation

mubes
Copy link
@mubes mubes commented Feb 12, 2020

Fix crowbarring of 32 value into 8 bit register sequence, which was generating an alignment warning.

@tannewt
Copy link
Member
tannewt commented Feb 13, 2020

What warning was this giving? I tend to cast (uint8_t*) to uint16_t* or uint32_t* frequently and am surprised this is the only spot you found it.

@mubes
Copy link
Author
mubes commented Feb 13, 2020 via email

@arturo182
Copy link
Collaborator

The code looks fine, could've been a memcpy but a loop works too, however the code style doesn't quite match the rest of the file, you use tabs, put opening braces on new line, and are missing spaces around some of the operators :)

Copy link
Collaborator
@arturo182 arturo182 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

Copy link
Member
@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works for me! I'm happy to see warnings get resolved. Thanks!

@tannewt tannewt merged commit 2063867 into adafruit:master Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0