-
-
Notifications
You must be signed in to change notification settings - Fork 642
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 integer warnings #97
base: master
Are you sure you want to change the base?
Conversation
e.g.: LoRaDuplex.ino:47:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
@Rotzbua thanks for submitting, what board are you building for? When I compile for Arduino Uno on IDE 1.8.5 I don't see any warnings. |
I usually switch the arduino ide to the highest warning level, then you will get the warning. The |
Thanks I missed that, for the Uno I now get (without this PR):
@tigoe any feedback on those changes? Do you think casting to |
Those explicit casts to Best, |
Normaly I use clion, it always warns about implicit type conversation. Implicit type conversations are often reasons for bugs, so I personally do not like them. It seems that |
Fair enough.
That's for a reason. Quoting:
|
e.g.:
LoRaDuplex.ino:47:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]