aboutsummaryrefslogtreecommitdiff
path: root/src/printf.c
diff options
context:
space:
mode:
authordrh <>2022-07-18 15:02:00 +0000
committerdrh <>2022-07-18 15:02:00 +0000
commit077e17b59a98eb8839ecfef661e7305fdb3e898d (patch)
tree3e5d7c1c478d5b96bf8d19551336ac6110b43b96 /src/printf.c
parent449b473ee6dacd93d31672396bdd4742dd916d35 (diff)
downloadsqlite-077e17b59a98eb8839ecfef661e7305fdb3e898d.tar.gz
sqlite-077e17b59a98eb8839ecfef661e7305fdb3e898d.zip
Increase the size of loop variables in the printf() implementation to avoid
harmless compiler warnings. FossilOrigin-Name: aab790a16e1bdff78759f9c9ae87a2559ba82dd34ef3dedfb66035a0db7067a7
Diffstat (limited to 'src/printf.c')
-rw-r--r--src/printf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/printf.c b/src/printf.c
index f0bfa5327..3602e1fcb 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -803,8 +803,8 @@ void sqlite3_str_vappendf(
case etSQLESCAPE: /* %q: Escape ' characters */
case etSQLESCAPE2: /* %Q: Escape ' and enclose in '...' */
case etSQLESCAPE3: { /* %w: Escape " characters */
- int i, j, k, n, isnull;
- int needQuote;
+ i64 i, j, k, n;
+ int needQuote, isnull;
char ch;
char q = ((xtype==etSQLESCAPE3)?'"':'\''); /* Quote character */
char *escarg;