diff options
Diffstat (limited to 'src/printf.c')
-rw-r--r-- | src/printf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/printf.c b/src/printf.c index 2e09431bf..186e95bb8 100644 --- a/src/printf.c +++ b/src/printf.c @@ -534,13 +534,14 @@ void sqlite3_str_vappendf( } exp = s.iDP-1; - if( xtype==etGENERIC && precision>0 ) precision--; /* ** If the field type is etGENERIC, then convert to either etEXP ** or etFLOAT, as appropriate. */ if( xtype==etGENERIC ){ + assert( precision>0 ); + precision--; flag_rtz = !flag_alternateform; if( exp<-4 || exp>precision ){ xtype = etEXP; |