summaryrefslogtreecommitdiffstats
path: root/src/printf.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 14:07:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 14:07:37 +0000
commitde1caa20c41f730e54fb6974ba7821fe48816e40 (patch)
tree4702bdab12e2b6f51bef05af9f8d8854d2e1b7e8 /src/printf.c
parentAdding upstream version 3.45.1. (diff)
downloadsqlite3-upstream/3.45.2.tar.xz
sqlite3-upstream/3.45.2.zip
Adding upstream version 3.45.2.upstream/3.45.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/printf.c')
-rw-r--r--src/printf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/printf.c b/src/printf.c
index c6b3803..2e09431 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -498,6 +498,7 @@ void sqlite3_str_vappendf(
if( xtype==etFLOAT ){
iRound = -precision;
}else if( xtype==etGENERIC ){
+ if( precision==0 ) precision = 1;
iRound = precision;
}else{
iRound = precision+1;