aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/lex.c')
-rw-r--r--gcc/java/lex.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/java/lex.c b/gcc/java/lex.c
index 58df299..311f697 100644
--- a/gcc/java/lex.c
+++ b/gcc/java/lex.c
@@ -438,13 +438,12 @@ java_parse_doc_section (c)
if (c == UEOF)
java_lex_error ("Comment not terminated at end of input", 0);
-
- java_unget_unicode ();
tag [tag_index] = '\0';
if (!strcmp (tag, "deprecated"))
ctxp->deprecated = 1;
}
+ java_unget_unicode ();
return 0;
}
@@ -619,7 +618,7 @@ java_lex (java_lval)
goto step1;
}
- java_parse_end_comment (c);
+ java_parse_end_comment ((c = java_get_unicode ()));
goto step1;
break;
default: