diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1993-10-04 18:03:00 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1993-10-04 18:03:00 -0400 |
commit | 3e00fefde117f3c5f88e068174340a6913c394dd (patch) | |
tree | c2b17f7a35b9ac37512b423c72802f3a4872e448 /gcc | |
parent | f0afa4a260ed42561e5359f2b6c104abc216668f (diff) | |
download | gcc-3e00fefde117f3c5f88e068174340a6913c394dd.zip gcc-3e00fefde117f3c5f88e068174340a6913c394dd.tar.gz gcc-3e00fefde117f3c5f88e068174340a6913c394dd.tar.bz2 |
Cast enum arithmetic and logical operands to int.
From-SVN: r5595
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/bc-typecd.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/bc-typecd.h b/gcc/bc-typecd.h index 243cd3d..097cd62 100644 --- a/gcc/bc-typecd.h +++ b/gcc/bc-typecd.h @@ -30,19 +30,19 @@ enum typecode }; /* Determine if a given type is integer. */ -#define TYPECODE_INTEGER_P(TYPECODE) ((TYPECODE) < SFcode) +#define TYPECODE_INTEGER_P(TYPECODE) ((int) (TYPECODE) < (int) SFcode) /* Determine if a given type is unsigned. */ #define TYPECODE_UNSIGNED_P(TYPECODE) \ - (TYPECODE_INTEGER_P(TYPECODE) && (TYPECODE) & 1) + (TYPECODE_INTEGER_P(TYPECODE) && (int) (TYPECODE) & 1) /* Determine if a given type is signed. */ #define TYPECODE_SIGNED_P(TYPECODE) \ - (TYPECODE_INTEGER_P(TYPECODE) && !((TYPECODE) & 1)) + (TYPECODE_INTEGER_P(TYPECODE) && !((int) (TYPECODE) & 1)) /* Determine if a given type is floating. */ #define TYPECODE_FLOAT_P(TYPECODE) \ - ((TYPECODE) < Pcode && !TYPECODE_INTEGER_P(TYPECODE)) + ((int) (TYPECODE) < (int) Pcode && !TYPECODE_INTEGER_P(TYPECODE)) /* Determine if the given type is arithmetic. */ #define TYPECODE_ARITH_P(TYPECODE) \ |