]> git.sur5r.net Git - cc65/commitdiff
Allow an optional '+' sign before an exponent of a floating point constant.
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 31 Mar 2008 21:17:27 +0000 (21:17 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 31 Mar 2008 21:17:27 +0000 (21:17 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3827 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/scanner.c

index 573b09c1e929816f03bcc6e9c8a8a58ba68cb7e3..cc073e37313157786eea0c0e761245ce868ee501 100644 (file)
@@ -634,6 +634,8 @@ static void NumericConst (void)
             if (CurC == '-') {
                 Sign = -1;
                 NextChar ();
+            } else if (CurC == '+') {
+                NextChar ();
             }
 
             /* Read exponent digits. Since we support only 32 bit floats