* doublest.c (store_typed_floating): Don't try to return a value.

Fixes PR gdb/290.
This commit is contained in:
Mark Kettenis
2002-02-09 17:25:57 +00:00
parent bdc2fc72b3
commit 0b87a11db9
2 changed files with 8 additions and 3 deletions

View 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