Commit bd466c7b by Kaveh R. Ghazi Committed by Kaveh Ghazi

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
parent 88e5899c
2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* lex.c (java_read_char): Avoid "comparison is always true"
warning.
2002-06-25 Andreas Schwab <schwab@suse.de>
* expr.c (JSR): Avoid undefined operation on PC.
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment