This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Fix for PR java/5902
- From: Eric Blake <ebb9 at email dot byu dot edu>
- To: java-patches at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Thu, 21 Mar 2002 21:18:39 -0700
- Subject: Fix for PR java/5902
- Organization: BYU Student
OK to commit mainline and branch? Tested on i686-pc-linux-gnu.
2002-03-21 Eric Blake <ebb9@email.byu.edu>
Fix for PR java/6026:
* lex.c (java_lex): Fix parsing of consecutive floats.
Index: lex.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/lex.c,v
retrieving revision 1.80.8.2
diff -u -r1.80.8.2 lex.c
--- lex.c 2002/03/12 03:50:39 1.80.8.2
+++ lex.c 2002/03/22 04:18:12
@@ -1158,6 +1158,8 @@
{
if (JAVA_ASCII_DIGIT (c))
seen_digit = 1;
+ if (stage == 2)
+ stage = 3;
literal_token [literal_index++ ] = c;
c = java_get_unicode ();
}
--
This signature intentionally left boring.
Eric Blake ebb9@email.byu.edu
BYU student, free software programmer