diff options
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index e4de853..716f92e 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -2387,7 +2387,7 @@ floatformat_from_doublest (fmt, from, to) dfrom = -dfrom; } - if (dfrom + 1 == dfrom) /* Result is Infinity */ + if (dfrom + dfrom == dfrom && dfrom != 0.0) /* Result is Infinity */ { /* Infinity exponent is same as NaN's. */ put_field (uto, fmt->byteorder, fmt->totalsize, fmt->exp_start, |