From: Mark Kettenis Date: Sat, 9 Feb 2002 17:25:57 +0000 (+0000) Subject: * doublest.c (store_typed_floating): Don't try to return a value. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b87a11db92c78d9ddf3b1de2599202558c2a054;p=binutils-gdb.git * doublest.c (store_typed_floating): Don't try to return a value. Fixes PR gdb/290. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e469f4c3c64..c193f8cfc99 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-02-09 Mark Kettenis + + * doublest.c (store_typed_floating): Don't try to return a value. + Fixes PR gdb/290. + 2002-02-08 Jim Blandy * c-typeprint.c (c_type_print_varspec_suffix): If a function type 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