From 5beededc7ee5e8fa0cc8ba552efc748d47a16f59 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 3 Oct 2000 19:10:44 +0000 Subject: [PATCH] lex.c (java_read_unicode): Reset bs_count when finished with `\u' sequence. * lex.c (java_read_unicode): Reset bs_count when finished with `\u' sequence. From-SVN: r36703 --- gcc/java/ChangeLog | 5 +++++ gcc/java/lex.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 4b6d3077ad8..e0669b277ea 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2000-09-27 Tom Tromey + + * lex.c (java_read_unicode): Reset bs_count when finished with + `\u' sequence. + 2000-10-01 Mark Mitchell Convert to GC. diff --git a/gcc/java/lex.c b/gcc/java/lex.c index 5d106c416ec..be1b1392bae 100644 --- a/gcc/java/lex.c +++ b/gcc/java/lex.c @@ -432,6 +432,7 @@ java_read_unicode (lex, term_context, unicode_escape_p) else java_lex_error ("Non hex digit in Unicode escape sequence", 0); } + lex->bs_count = 0; *unicode_escape_p = 1; return (term_context ? unicode : (java_lineterminator (c) ? '\n' : unicode));