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:
parent
640e686c42
commit
d784b0c32c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124652
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user