Skip to content

Fix compilation warnings with GCC 11.0.1#147

Open
AzureCrimson wants to merge 1 commit intoservalproject:developmentfrom
AzureCrimson:development
Open

Fix compilation warnings with GCC 11.0.1#147
AzureCrimson wants to merge 1 commit intoservalproject:developmentfrom
AzureCrimson:development

Conversation

@AzureCrimson
Copy link
Copy Markdown

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