aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/doublest.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index baa2287..00a1b3f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,7 @@
2004-08-07 Andrew Cagney <cagney@gnu.org>
+ * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
+
* gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
through to builtin_type_uint128.
diff --git a/gdb/doublest.c b/gdb/doublest.c
index 265e692..e4dbb2a 100644
--- a/gdb/doublest.c
+++ b/gdb/doublest.c
@@ -652,7 +652,7 @@ floatformat_from_length (int len)
format = NULL;
if (format == NULL)
error ("Unrecognized %d-bit floating-point type.",
- len & TARGET_CHAR_BIT);
+ len * TARGET_CHAR_BIT);
return format;
}