changeset 9445:e0f2eeb1796a

Fix output of floating-point values with large exponent.
author Bruno Haible <bruno@clisp.org>
date Sun, 04 Nov 2007 15:00:15 +0100
parents 0c3b25464595
children 0519fc8ce06a
files ChangeLog lib/vasnprintf.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-04  Bruno Haible  <bruno@clisp.org>
+
+	* lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
+
 2007-11-04  Bruno Haible  <bruno@clisp.org>
 
 	* modules/relocatable-prog (Files): Add m4/lib-ld.m4.
--- a/lib/vasnprintf.c
+++ b/lib/vasnprintf.c
@@ -1151,7 +1151,7 @@
 		size_t count;
 		for (count = m.nlimbs; count > 0; count--)
 		  {
-		    accu += (mp_twolimb_t) *sourceptr++ << s;
+		    accu += (mp_twolimb_t) *sourceptr++ << s_bits;
 		    *destptr++ = (mp_limb_t) accu;
 		    accu = accu >> GMP_LIMB_BITS;
 		  }