diff options
author | drh <> | 2023-08-14 12:20:44 +0000 |
---|---|---|
committer | drh <> | 2023-08-14 12:20:44 +0000 |
commit | 592ae2823cfaa0a1b56b782aa45201c5618171c2 (patch) | |
tree | fea9c81c48e37e3c9f0f6d94680e6d224d9a4b60 /src | |
parent | 07ef60350d578176253deab4f1a2e4a36ad567e3 (diff) | |
download | sqlite-592ae2823cfaa0a1b56b782aa45201c5618171c2.tar.gz sqlite-592ae2823cfaa0a1b56b782aa45201c5618171c2.zip |
Fix harmless compiler warnings reported by MSVC.
FossilOrigin-Name: 391e21bb6e0b2f4632972b6617a3a18192f88deb29eee5bc060846468e624b21
Diffstat (limited to 'src')
-rw-r--r-- | src/update.c | 6 | ||||
-rw-r--r-- | src/vdbeapi.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/update.c b/src/update.c index 3b3c2f838..cd7d73f3f 100644 --- a/src/update.c +++ b/src/update.c @@ -1259,9 +1259,9 @@ static void updateVirtualTable( sqlite3ExprDup(db, pChanges->a[aXRef[i]].pExpr, 0) ); }else{ - Expr *pRow = exprRowColumn(pParse, i); - if( pRow ) pRow->op2 = OPFLAG_NOCHNG; - pList = sqlite3ExprListAppend(pParse, pList, pRow); + Expr *pRowExpr = exprRowColumn(pParse, i); + if( pRowExpr ) pRowExpr->op2 = OPFLAG_NOCHNG; + pList = sqlite3ExprListAppend(pParse, pList, pRowExpr); } } diff --git a/src/vdbeapi.c b/src/vdbeapi.c index cc58e7a87..79b5de9f0 100644 --- a/src/vdbeapi.c +++ b/src/vdbeapi.c @@ -1864,7 +1864,7 @@ int sqlite3_stmt_explain(sqlite3_stmt *pStmt, int eMode){ Vdbe *v = (Vdbe*)pStmt; int rc; sqlite3_mutex_enter(v->db->mutex); - if( v->explain==eMode ){ + if( ((int)v->explain)==eMode ){ rc = SQLITE_OK; }else if( eMode<0 || eMode>2 ){ rc = SQLITE_ERROR; |