mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-09 18:53:00 +00:00
* utils.c (floatformat_from_doublest): Improve test for infinity.
This commit is contained in:
parent
283e535d3f
commit
9b91bc2295
@ -1,3 +1,7 @@
|
|||||||
|
Thu Jun 19 08:18:48 1997 Mark Alexander <marka@cygnus.com>
|
||||||
|
|
||||||
|
* utils.c (floatformat_from_doublest): Improve test for infinity.
|
||||||
|
|
||||||
Wed Jun 18 13:47:52 1997 Fred Fish <fnf@cygnus.com>
|
Wed Jun 18 13:47:52 1997 Fred Fish <fnf@cygnus.com>
|
||||||
|
|
||||||
* dwarfread.c (isreg, optimized_out, offreg, basereg): Move
|
* dwarfread.c (isreg, optimized_out, offreg, basereg): Move
|
||||||
|
@ -2387,7 +2387,7 @@ floatformat_from_doublest (fmt, from, to)
|
|||||||
dfrom = -dfrom;
|
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. */
|
/* Infinity exponent is same as NaN's. */
|
||||||
put_field (uto, fmt->byteorder, fmt->totalsize, fmt->exp_start,
|
put_field (uto, fmt->byteorder, fmt->totalsize, fmt->exp_start,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user