Fix a bug that caused long double subnormals to be printed

incorrectly on architectures without an explicit normalization
bit (sparc64, powerpc).
This commit is contained in:
David Schultz 2004-01-18 07:53:49 +00:00
parent 640e686c42
commit d784b0c32c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124652

View File

@ -79,6 +79,9 @@ __ldtoa(long double *ld, int mode, int ndigits, int *decpt, int *sign,
break;
case FP_SUBNORMAL:
kind = STRTOG_Denormal;
#ifdef LDBL_IMPLICIT_NBIT
be++;
#endif
break;
case FP_INFINITE:
kind = STRTOG_Infinite;