-
Notifications
You must be signed in to change notification settings - Fork 447
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
Support x64-android #371
base: master
Are you sure you want to change the base?
Support x64-android #371
Conversation
Error log: |
404 NOT FOUND. The patch will turn off the compiler message. But will the result still be correct, given different precision of the compared types? |
Original error from microsoft/vcpkg#37123:
Note the changed values. |
There is a legitimate concern that the comparison of integers and floats is itself an implicit problem. The solution I can think of is:
|
Like this:
|
Describe the bug
Implicit type conversion rules in C++. In C++, if two values of different types are operated on or compared, the compiler attempts an implicit type conversion to convert one value to the type of the other. This implicit type conversion may result in loss of precision, overflow, or incorrect results。
That's why I used the explicit conversion result.
Environment
OS: Ubuntu 20.04.6 LTS
Compiler: gcc 9.4.0
Use: vcpkg
To reproduce:
Run command: