aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lex.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2002-06-26 20:07:02 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2002-06-26 20:07:02 +0000
commitbd466c7bdea800a8147cd197528a09ab113efb0b (patch)
tree3063139512c8fbeefbb7eb47febcdb637b30c597 /gcc/java/lex.c
parent88e5899c42f407b4a004f07547b66faedb337e5d (diff)
downloadgcc-bd466c7bdea800a8147cd197528a09ab113efb0b.zip
gcc-bd466c7bdea800a8147cd197528a09ab113efb0b.tar.gz
gcc-bd466c7bdea800a8147cd197528a09ab113efb0b.tar.bz2
lex.c (java_read_char): Avoid "comparison is always true" warning.
* lex.c (java_read_char): Avoid "comparison is always true" warning. From-SVN: r55014
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 21c442b..3810096 100644
--- a/gcc/java/lex.c
+++ b/gcc/java/lex.c
@@ -494,8 +494,8 @@ java_read_char (lex)
+ (c2 & 0x3f));
/* Check for valid 3-byte characters.
Don't allow surrogate, \ufffe or \uffff. */
- if (r >= 0x800 && r <= 0xffff
- && ! (r >= 0xd800 && r <= 0xdfff)
+ if (IN_RANGE (r, 0x800, 0xffff)
+ && ! IN_RANGE (r, 0xd800, 0xdfff)
&& r != 0xfffe && r != 0xffff)
return r;
}