aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-10-17 16:45:56 +0000
committerNick Clifton <nickc@redhat.com>2007-10-17 16:45:56 +0000
commit499ac353610f24006acf82c32503d8d15d0f278c (patch)
treea85388693f1bb562345a7f7a28875fd962bd16f0 /gas/read.c
parent25b07cd9c40077c076d68f9e7d5a113828fbebbf (diff)
downloadgdb-499ac353610f24006acf82c32503d8d15d0f278c.zip
gdb-499ac353610f24006acf82c32503d8d15d0f278c.tar.gz
gdb-499ac353610f24006acf82c32503d8d15d0f278c.tar.bz2
Remove duplicate definitions of the md_atof() function
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/read.c b/gas/read.c
index 379b3f2..1162139 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -3297,7 +3297,7 @@ s_float_space (int float_type)
err = md_atof (float_type, temp, &flen);
know (flen <= MAXIMUM_NUMBER_OF_CHARS_FOR_FLOAT);
- know (flen > 0);
+ know (err != NULL || flen > 0);
if (err)
{
as_bad (_("bad floating literal: %s"), err);
@@ -4602,7 +4602,7 @@ float_cons (/* Clobbers input_line-pointer, checks end-of-line. */
{
err = md_atof (float_type, temp, &length);
know (length <= MAXIMUM_NUMBER_OF_CHARS_FOR_FLOAT);
- know (length > 0);
+ know (err != NULL || length > 0);
if (err)
{
as_bad (_("bad floating literal: %s"), err);