diff options
author | Mark Kettenis <kettenis@gnu.org> | 2002-02-09 17:25:57 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2002-02-09 17:25:57 +0000 |
commit | 20791812879c29eefc080027f6e40fbdd9b5bafb (patch) | |
tree | f8befdd155437b7cf26ecc738df23f945c08eff7 /gdb/doublest.c | |
parent | 4ba6d70971c4a30686f1f7d2c9d9df90f931ec5b (diff) | |
download | gdb-20791812879c29eefc080027f6e40fbdd9b5bafb.tar.gz |
* doublest.c (store_typed_floating): Don't try to return a value.
Fixes PR gdb/290.
Diffstat (limited to 'gdb/doublest.c')
-rw-r--r-- | gdb/doublest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/doublest.c b/gdb/doublest.c index 93e4a7eb25f..a4b4b763f7f 100644 --- a/gdb/doublest.c +++ b/gdb/doublest.c @@ -732,9 +732,9 @@ store_typed_floating (void *addr, const struct type *type, DOUBLEST val) memset (addr, 0, TYPE_LENGTH (type)); if (TYPE_FLOATFORMAT (type) == NULL) - return store_floating (addr, TYPE_LENGTH (type), val); - - floatformat_from_doublest (TYPE_FLOATFORMAT (type), &val, addr); + store_floating (addr, TYPE_LENGTH (type), val); + else + floatformat_from_doublest (TYPE_FLOATFORMAT (type), &val, addr); } /* Convert a floating-point number of type FROM_TYPE from a |