OSDN Git Service

* doublest.c (store_typed_floating): Don't try to return a value.
authorkettenis <kettenis>
Sat, 9 Feb 2002 17:25:56 +0000 (17:25 +0000)
committerkettenis <kettenis>
Sat, 9 Feb 2002 17:25:56 +0000 (17:25 +0000)
Fixes PR gdb/290.

gdb/ChangeLog
gdb/doublest.c

index e469f4c..c193f8c 100644 (file)
@@ -1,3 +1,8 @@
+2002-02-09  Mark Kettenis  <kettenis@gnu.org>
+
+       * doublest.c (store_typed_floating): Don't try to return a value.
+       Fixes PR gdb/290.
+
 2002-02-08  Jim Blandy  <jimb@redhat.com>
 
        * c-typeprint.c (c_type_print_varspec_suffix): If a function type
index 93e4a7e..a4b4b76 100644 (file)
@@ -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