diff options
author | drh <> | 2022-07-11 19:12:47 +0000 |
---|---|---|
committer | drh <> | 2022-07-11 19:12:47 +0000 |
commit | d5c2e084498eb5c235bf6fb8f85a9bc7d940035c (patch) | |
tree | 4b6d34f6e3bd07a8cc90510b833445825cf00f88 /ext/misc/stmt.c | |
parent | f1ab642cde13954f4e739fbb8f2705350821015d (diff) | |
download | sqlite-d5c2e084498eb5c235bf6fb8f85a9bc7d940035c.tar.gz sqlite-d5c2e084498eb5c235bf6fb8f85a9bc7d940035c.zip |
In the sqlite_stmt extension, store the result of strlen() in a 64-bit
integer to avoid a compiler warning, even though we know that the length
will always fit comfortably in 32 bits.
FossilOrigin-Name: 3fe19452499afc8e6b38905e1ce7e9153adbfebf10dccf39da4b7f1b0cd24f05
Diffstat (limited to 'ext/misc/stmt.c')
-rw-r--r-- | ext/misc/stmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/misc/stmt.c b/ext/misc/stmt.c index ac0ae6f0f..42f4d651d 100644 --- a/ext/misc/stmt.c +++ b/ext/misc/stmt.c @@ -220,7 +220,7 @@ static int stmtFilter( ppRow = &pCur->pRow; for(p=sqlite3_next_stmt(pCur->db, 0); p; p=sqlite3_next_stmt(pCur->db, p)){ const char *zSql = sqlite3_sql(p); - int nSql = zSql ? strlen(zSql)+1 : 0; + sqlite3_int64 nSql = zSql ? strlen(zSql)+1 : 0; StmtRow *pNew = (StmtRow*)sqlite3_malloc(sizeof(StmtRow) + nSql); if( pNew==0 ) return SQLITE_NOMEM; |