OSDN Git Service

gcc/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 21 Oct 2007 10:47:22 +0000 (10:47 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 21 Oct 2007 10:47:22 +0000 (10:47 +0000)
* system.h (IN_RANGE): Cast each argument individually.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129531 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/system.h

index b2356a6..bab23e5 100644 (file)
@@ -1,5 +1,9 @@
 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
        MIPS16 code unless using o32 or o64.  
 
index 1696b9c..65f2737 100644 (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.  */