system.h (IN_RANGE): Cast each argument individually.

gcc/
	* system.h (IN_RANGE): Cast each argument individually.

From-SVN: r129531
This commit is contained in:
Richard Sandiford 2007-10-21 10:47:22 +00:00 committed by Richard Sandiford
parent d375fd5e62
commit b5edaa2ca1
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
* system.h (IN_RANGE): Cast each argument individually.
2007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
* config/mips/mips.c (mips_set_mips16_mode) Say sorry for hard-float

View File

@ -253,7 +253,8 @@ extern int errno;
UPPER. However the bounds themselves can be either positive or
negative. */
#define IN_RANGE(VALUE, LOWER, UPPER) \
((unsigned HOST_WIDE_INT)((VALUE) - (LOWER)) <= ((UPPER) - (LOWER)))
((unsigned HOST_WIDE_INT) (VALUE) - (unsigned HOST_WIDE_INT) (LOWER) \
<= (unsigned HOST_WIDE_INT) (UPPER) - (unsigned HOST_WIDE_INT) (LOWER))
/* Infrastructure for defining missing _MAX and _MIN macros. Note that
macros defined with these cannot be used in #if. */