summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2002-07-23 03:20:27 +0000
committerTom Tromey <tromey@gcc.gnu.org>2002-07-23 03:20:27 +0000
commite75abdabb2c3e7a31dfbe7a29022a038e3f2ecc1 (patch)
treed6cd54861b19d5c8afd822a880b0274ccdba412f
parent9cc37f69d2d52ccd3dce3040fe8d78555aa4e5d8 (diff)
downloadgcc-e75abdabb2c3e7a31dfbe7a29022a038e3f2ecc1.tar.gz
* lex.c (java_lex): Check for `e' or `E' after 0.
From-SVN: r55664
-rw-r--r--gcc/java/ChangeLog4
-rw-r--r--gcc/java/lex.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 2ccdd0585dd..56d531f156b 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,7 @@
+2002-07-22 Tom Tromey <tromey@redhat.com>
+
+ * lex.c (java_lex): Check for `e' or `E' after 0.
+
2002-07-21 Richard Henderson <rth@redhat.com>
* lang.c (java_unsafe_for_reeval): New.
diff --git a/gcc/java/lex.c b/gcc/java/lex.c
index d350e99907a..5659ed2a1f5 100644
--- a/gcc/java/lex.c
+++ b/gcc/java/lex.c
@@ -1023,9 +1023,10 @@ java_lex (java_lval)
}
else if (JAVA_ASCII_DIGIT (c))
radix = 8;
- else if (c == '.')
+ else if (c == '.' || c == 'e' || c =='E')
{
- /* Push the '.' back and prepare for a FP parsing... */
+ /* Push the '.', 'e', or 'E' back and prepare for a FP
+ parsing... */
java_unget_unicode ();
c = '0';
}