Skip to content
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

Add parentheses to lab-02 get pixel macro #172

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

c7stef
Copy link
Contributor

@c7stef c7stef commented Mar 11, 2024

Add parentheses around function-like macro parameters to avoid surprises with operator precedence. For instance: GET_PIXEL(a, 1<<2, 0).

Copy link
Member

@teodutu teodutu left a comment

Choose a reason for hiding this comment

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

Legit. Similar to my suggestion form your earlier PR #171, duplicate this change to our new repo [1] so we have it for next year as well.

[1] https://github.com/cs-pub-ro/hardware-software-interface/

@teodutu teodutu merged commit c668bef into systems-cs-pub-ro:master Mar 11, 2024
1 check failed
@c7stef c7stef deleted the getpixel-fix branch March 11, 2024 18:47
@c7stef c7stef restored the getpixel-fix branch March 11, 2024 18:48
@c7stef c7stef deleted the getpixel-fix branch March 11, 2024 18:48
@c7stef c7stef restored the getpixel-fix branch March 11, 2024 18:49
@c7stef c7stef deleted the getpixel-fix branch March 11, 2024 18:49
c7stef added a commit to c7stef/hardware-software-interface that referenced this pull request Mar 11, 2024
This commit adds parentheses around function-like macro parameters. For
more details, see systems-cs-pub-ro/iocla#172.

Signed-off-by: Cosmin Popa <[email protected]>
teodutu pushed a commit to cs-pub-ro/hardware-software-interface that referenced this pull request Mar 19, 2024
This commit adds parentheses around function-like macro parameters. For
more details, see systems-cs-pub-ro/iocla#172.

Signed-off-by: Cosmin Popa <[email protected]>
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.

2 participants