aboutsummaryrefslogtreecommitdiff
path: root/src/printf.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-06-26 13:31:50 +0000
committerdrh <drh@noemail.net>2013-06-26 13:31:50 +0000
commitfd64cedc4be4ec9e83fe37190bbc599ae232aaf2 (patch)
treeeb26e9fd9625f522104f3343c3dd77e9296f2fc7 /src/printf.c
parent85b303df54a633e71380e3ffc0816ff952399b61 (diff)
parent989a6dbef118464509e7a303717fd0c61bbde1b8 (diff)
downloadsqlite-fd64cedc4be4ec9e83fe37190bbc599ae232aaf2.tar.gz
sqlite-fd64cedc4be4ec9e83fe37190bbc599ae232aaf2.zip
Bring the sessions branch up-to-date with all the latest trunk changes.
FossilOrigin-Name: 086a127236ee99d67513490fb7b5549e8b752c44
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;