This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Fix tipo in doublest.c


FYI,

This explains why my floating point types had strange sizes.

committed (also to 6.2),
Andrew
2004-08-07  Andrew Cagney  <cagney@gnu.org>

	* doublest.c (floatformat_from_length): Fix tipo, "*" not "&".

Index: doublest.c
===================================================================
RCS file: /cvs/src/src/gdb/doublest.c,v
retrieving revision 1.19
diff -p -u -r1.19 doublest.c
--- doublest.c	7 Aug 2004 17:10:33 -0000	1.19
+++ doublest.c	7 Aug 2004 20:05:43 -0000
@@ -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;
 }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]