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

Fix bitWrite with parenthesis #154

Merged
merged 1 commit into from
Aug 30, 2021
Merged

Fix bitWrite with parenthesis #154

merged 1 commit into from
Aug 30, 2021

Conversation

positron96
Copy link
Contributor

Current version does not wrap arguments in "()", so works incorrectly when used like this:

bitWrite(var, bit, cond?1:0);

Fixes #153

Current version does not wrap arguments in "()", so works incorrectly when used like this:
```
bitWrite(var, bit, cond?1:0);
```
@CLAassistant
Copy link

CLAassistant commented Aug 25, 2021

CLA assistant check
All committers have signed the CLA.

@aentinger
Copy link
Contributor

Thank you for the PR 👍 However, we still need you to sign the CLA in order to merge this one. Please make sure to be signed in with the email you've used for the commit.

@positron96
Copy link
Contributor Author

Done it. You know, for a oneline fix this is a lot of stuff to do.

@aentinger
Copy link
Contributor

Sorry, I didn't introduce the CLA stuff ...

@aentinger aentinger merged commit 6a524ad into arduino:master Aug 30, 2021
@positron96 positron96 deleted the patch-2 branch August 30, 2021 09:40
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.

bitWrite macro does not enclose argument in ()
3 participants