1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-10 01:02:56 +03:00

Fix harmless static analyzer warnings.

FossilOrigin-Name: 1ebcde72e2046dffaa408d2a5a4a5bbf35fdf4b096e0e088dcffd9360effdaa7
This commit is contained in:
drh
2021-10-04 15:08:49 +00:00
parent 253888c13b
commit c59ffa8c1e
7 changed files with 24 additions and 19 deletions

View File

@@ -2387,9 +2387,9 @@ int sqlite3ExprIsInteger(const Expr *p, int *pValue){
break;
}
case TK_UMINUS: {
int v;
int v = 0;
if( sqlite3ExprIsInteger(p->pLeft, &v) ){
assert( v!=(-2147483647-1) );
assert( ((unsigned int)v)!=0x80000000 );
*pValue = -v;
rc = 1;
}