diff options
author | rearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-25 10:35:09 +0000 |
---|---|---|
committer | rearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-25 10:35:09 +0000 |
commit | dece4f949a395168aa28b8f071b43aa5d8b00188 (patch) | |
tree | 51c585e913c6b54002cdd8f29b9a41b598543728 /gcc/java/lex.c | |
parent | 0ab94f0ca9de126111fe778c11a691cd0e679dfd (diff) | |
download | ppe42-gcc-dece4f949a395168aa28b8f071b43aa5d8b00188.tar.gz ppe42-gcc-dece4f949a395168aa28b8f071b43aa5d8b00188.zip |
* lex.c (java_read_char): Check for EOF from getc first.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39261 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/lex.c')
-rw-r--r-- | gcc/java/lex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/lex.c b/gcc/java/lex.c index 32c104e770c..fdfb0a7705d 100644 --- a/gcc/java/lex.c +++ b/gcc/java/lex.c @@ -447,10 +447,10 @@ java_read_char (lex) int c, c1, c2; c = getc (lex->finput); - if (c < 128) - return (unicode_t)c; if (c == EOF) return UEOF; + if (c < 128) + return (unicode_t)c; else { if ((c & 0xe0) == 0xc0) |