diff lib/vasnprintf.c @ 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 ad275322f8f1
children 0519fc8ce06a
line wrap: on
line diff
--- 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;
 		  }