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 compilation warnings with GCC 11.0.1 #147

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

AzureCrimson
Copy link

I fixed the following error messages by applying an upstream
optimization, the specific commit can be found here
https://sqlite.org/src/info/e95138f5f4febde5

error: implicit conversion from 'long long' to 'double' changes valuefrom 9223372036854775806 to 9223372036854775808 [-Werror,-Wimplicit-const-int-float-conversion]
if( n==0 && r>=0 && r<LARGEST_INT64-1 ){
error: implicit conversion from 'long long' to 'double' changes value from 9223372036854775806 to 9223372036854775808 [-Werror,-Wimplicit-const-int-float-conversion]
}else if( n==0 && r<0 && (-r)<LARGEST_INT64-1 ){
~~~~~~~~~~~~~~^~

I fixed the following error messages by applying an upstream
optimization, the specific commit can be found here
https://sqlite.org/src/info/e95138f5f4febde5

error: implicit conversion from 'long long' to 'double' changes valuefrom 9223372036854775806 to 9223372036854775808 [-Werror,-Wimplicit-const-int-float-conversion]
    if( n==0 && r>=0 && r<LARGEST_INT64-1 ){
error: implicit conversion from 'long long' to 'double' changes value from 9223372036854775806 to 9223372036854775808 [-Werror,-Wimplicit-const-int-float-conversion]
    }else if( n==0 && r<0 && (-r)<LARGEST_INT64-1 ){
                                 ~~~~~~~~~~~~~~^~
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.

1 participant