Commit 94f364ff authored by Bruno Haible's avatar Bruno Haible

Fix output of floating-point values with large exponent.

parent 252c176e
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.
......@@ -1151,7 +1151,7 @@ scale10_round_decimal_decoded (int e, mpn_t m, void *memory, int n)
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment