diff options
Diffstat (limited to 'gdb/value.c')
-rw-r--r-- | gdb/value.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/value.c b/gdb/value.c index 347eba5..90423ed 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -2925,9 +2925,7 @@ unpack_long (struct type *type, const gdb_byte *valaddr) return (LONGEST) extract_typed_floating (valaddr, type); case TYPE_CODE_DECFLOAT: - /* libdecnumber has a function to convert from decimal to integer, but - it doesn't work when the decimal number has a fractional part. */ - return (LONGEST) decimal_to_doublest (valaddr, len, byte_order); + return decimal_to_longest (valaddr, len, byte_order); case TYPE_CODE_PTR: case TYPE_CODE_REF: |