Compiler warning - signed unsigned mismatch if enable sorter references defined

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Compiler warning - signed unsigned mismatch if enable sorter references defined

paul tracy
Compiling the amalgamation (some previous versions including the current Version 3.25.2 (2018-09-25)) generates the following warning with SQLITE_ENABLE_SORTER_REFERENCES defined. 

The build works fine and always has so this is really just benign.

The warning is: sqlite3.c(106816): warning C4018: '>=': signed/unsigned mismatch

The code block looks like this:

#ifdef SQLITE_ENABLE_SORTER_REFERENCES
    if( v>=sqlite3GlobalConfig.szSorterRef ){
      pCol->colFlags |= COLFLAG_SORTERREF;
    }
#endif

v is an int. szSorterRef is u32
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users