Fix error-reporting in hexadecimal floating-point numbers
authorH. Peter Anvin <hpa@zytor.com>
Wed, 19 Sep 2007 01:33:17 +0000 (18:33 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 19 Sep 2007 01:33:17 +0000 (18:33 -0700)
float.c

diff --git a/float.c b/float.c
index 08dfdb4..b87db84 100644 (file)
--- a/float.c
+++ b/float.c
@@ -128,7 +128,7 @@ static void ieee_flconvert_hex(char *string, uint16_t *mant,
        } else {
             error(ERR_NONFATAL,
                   "floating-point constant: `%c' is invalid character",
-                  *string);
+                  c);
             return;
         }
     }