-
Notifications
You must be signed in to change notification settings - Fork 1k
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
"implicit conversion loses integer precision" warnings #1617
Comments
Well, then don't use this flag. :P Or do you think this is a problem? Is it a default flag? |
Each case has to be investigated to answer this question.
macOS Xcode set it by default. |
I'm a bit on the fence. All of these are fixable, and maybe some should be fixed (in particular the last one), but in other cases, this will just use up some of the precious reviewer bandwidth.
These are harmless, but it may be more natural to make
I think these warnings are a bit stupid, but okay, explicit is better than implicit. I wouldn't mind adding an explicit cast.
I don't know. We could make all of these
These are obviously okay. Happy to add a cast if that makes apple clang happy...
Okay, |
When building with clang and the
-Wshorten-64-to-32
flag, there are some warnings:The text was updated successfully, but these errors were encountered: