diff options
author | YamaArashi <shadow962@live.com> | 2016-03-06 13:30:23 -0800 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-03-06 13:31:31 -0800 |
commit | e91bc8b5058f55174ea1d7e967e4e9d38fd29cae (patch) | |
tree | bd02014c3d4f04ecdb1ff984bd4db82db403880c /gcc/c-typeck.c | |
parent | 1f01ff809a107816317c4ac8a7eff1cbd3700370 (diff) |
get rid of HOST_BITS_PER_LONG
Diffstat (limited to 'gcc/c-typeck.c')
-rwxr-xr-x | gcc/c-typeck.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index b351ffb..d5a77d6 100755 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -2561,7 +2561,7 @@ build_binary_op (code, orig_op0, orig_op1, convert_p) || TREE_CODE (primop1) == INTEGER_CST) { tree primop; - long constant, mask; + HOST_WIDE_INT constant, mask; int unsignedp, bits; if (TREE_CODE (primop0) == INTEGER_CST) @@ -2579,9 +2579,9 @@ build_binary_op (code, orig_op0, orig_op1, convert_p) bits = TYPE_PRECISION (TREE_TYPE (primop)); if (bits < TYPE_PRECISION (result_type) - && bits < HOST_BITS_PER_LONG && unsignedp) + && bits < HOST_BITS_PER_WIDE_INT && unsignedp) { - mask = (~0L) << bits; + mask = (~((HOST_WIDE_INT)0)) << bits; if ((mask & constant) != mask) warning ("comparison of promoted ~unsigned with constant"); } |