diff options
Diffstat (limited to 'src/common/f2s.c')
-rw-r--r-- | src/common/f2s.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/f2s.c b/src/common/f2s.c index 62432a539e7..ff22b56c926 100644 --- a/src/common/f2s.c +++ b/src/common/f2s.c @@ -756,7 +756,7 @@ float_to_shortest_decimal_bufn(float f, char *result) /* Case distinction; exit early for the easy cases. */ if (ieeeExponent == ((1u << FLOAT_EXPONENT_BITS) - 1u) || (ieeeExponent == 0 && ieeeMantissa == 0)) { - return copy_special_str(result, ieeeSign, ieeeExponent, ieeeMantissa); + return copy_special_str(result, ieeeSign, (ieeeExponent != 0), (ieeeMantissa != 0)); } floating_decimal_32 v; |