Minor signed/unsigned comparison issue in dropCell
(1.1) By markstz on 2022-01-11 11:49:54 edited from 1.0 [source]
I've recently upgraded from 3.35.0 to 3.37.2, and stumbled on a minor thing in dropCell(), which pops up when SQLITE_DEBUG is enabled.
dropCell contains this line:
assert( pPage->pBt->usableSize > (int)(ptr-data) );
There's a comparison between signed (int) and unsigned (u32) values here, and I'm getting a compiler error from it. This is the only place I get this error in sqlite3.c so I'm disabling the warning for now.
Can this be corrected?