aboutsummaryrefslogtreecommitdiff
path: root/src/printf.c
diff options
context:
space:
mode:
authormistachkin <mistachkin@noemail.net>2013-06-21 18:32:11 +0000
committermistachkin <mistachkin@noemail.net>2013-06-21 18:32:11 +0000
commitf5fe3ae9e6ec813a0f015c990ddac7349a933467 (patch)
treefe707c5648260e826cb61bd85e9f08501ff2ca4c /src/printf.c
parent1654256ac892447558ff0587de76d5b53ac2b6f5 (diff)
parentb01e5b59a2e471d468e1854ef4de4b8f54f3bd6c (diff)
downloadsqlite-f5fe3ae9e6ec813a0f015c990ddac7349a933467.tar.gz
sqlite-f5fe3ae9e6ec813a0f015c990ddac7349a933467.zip
Merge updates from trunk.
FossilOrigin-Name: fa2a91e6c631864846484d13cffdc51856953cd1
Diffstat (limited to 'src/printf.c')
-rw-r--r--src/printf.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/printf.c b/src/printf.c
index 9f68d204f..8d37d633b 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -413,13 +413,7 @@ void sqlite3VXPrintf(
else prefix = 0;
}
if( xtype==etGENERIC && precision>0 ) precision--;
-#if 0
- /* Rounding works like BSD when the constant 0.4999 is used. Wierd! */
- for(idx=precision, rounder=0.4999; idx>0; idx--, rounder*=0.1);
-#else
- /* It makes more sense to use 0.5 */
for(idx=precision, rounder=0.5; idx>0; idx--, rounder*=0.1){}
-#endif
if( xtype==etFLOAT ) realvalue += rounder;
/* Normalize realvalue to within 10.0 > realvalue >= 1.0 */
exp = 0;