aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lex.c
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@cygnus.com>1999-05-25 16:36:07 +0000
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>1999-05-25 09:36:07 -0700
commitdc4e6ccfe59431e533042ba5de7e1ca3e5c2b7d3 (patch)
tree1eaea5b879e97570da44a93cc9082fdfe30f2559 /gcc/java/lex.c
parent47d98fa268b4dd24dd89ae58cd0489910e1fd721 (diff)
downloadgcc-dc4e6ccfe59431e533042ba5de7e1ca3e5c2b7d3.zip
gcc-dc4e6ccfe59431e533042ba5de7e1ca3e5c2b7d3.tar.gz
gcc-dc4e6ccfe59431e533042ba5de7e1ca3e5c2b7d3.tar.bz2
[multiple changes]
Tue May 25 15:06:13 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (patch_assignment): Save the rhs before using it as an argument to _Jv_CheckArrayStore. Tue May 25 11:23:59 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * lex.c (java_parse_doc_section): Fixed `tag' buffer size. Mon May 24 13:26:00 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * lex.c (java_lex): Accepts `+' or `-' after the beginning of a floating point litteral only when the exponent indicator has been parsed. From-SVN: r27147
Diffstat (limited to 'gcc/java/lex.c')
-rw-r--r--gcc/java/lex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/lex.c b/gcc/java/lex.c
index 18d873f..fbaa23d 100644
--- a/gcc/java/lex.c
+++ b/gcc/java/lex.c
@@ -427,7 +427,7 @@ java_parse_doc_section (c)
/* We're parsing @deprecated */
if (valid_tag && (c == '@'))
{
- char tag [10];
+ char tag [11];
int tag_index = 0;
while (tag_index < 10 && c != UEOF && c != ' ' && c != '\n')
@@ -741,7 +741,7 @@ java_lex (java_lval)
stage = 4; /* So we fall through */
}
- if ((c=='-' || c =='+') && stage < 3)
+ if ((c=='-' || c =='+') && stage == 2)
{
stage = 3;
literal_token [literal_index++] = c;