diff options
Diffstat (limited to '')
-rw-r--r-- | src/printf.c | 1 |
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; |