summaryrefslogtreecommitdiffstats
path: root/gcc/java/lex.c
diff options
context:
space:
mode:
authorrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-25 10:35:09 +0000
committerrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-25 10:35:09 +0000
commitdece4f949a395168aa28b8f071b43aa5d8b00188 (patch)
tree51c585e913c6b54002cdd8f29b9a41b598543728 /gcc/java/lex.c
parent0ab94f0ca9de126111fe778c11a691cd0e679dfd (diff)
downloadppe42-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.c4
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)
OpenPOWER on IntegriCloud