diff options
author | YamaArashi <shadow962@live.com> | 2016-03-05 17:30:22 -0800 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-03-05 17:30:22 -0800 |
commit | 1f01ff809a107816317c4ac8a7eff1cbd3700370 (patch) | |
tree | 94d195909900f0f3ac91663a431de060e41c7abb /gcc/c-typeck.c | |
parent | 7d46fa8f8f179c38d1ac777e72a381a46a3c5969 (diff) |
make host wide int 32 bits
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 616d7ab..b351ffb 100755 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -2133,7 +2133,7 @@ build_binary_op (code, orig_op0, orig_op1, convert_p) if (TREE_INT_CST_LOW (op1) | TREE_INT_CST_HIGH (op1)) short_shift = 1; if (TREE_INT_CST_HIGH (op1) != 0 - || ((unsigned HOST_WIDE_INT) TREE_INT_CST_LOW (op1) + || ((HOST_WIDE_UINT) TREE_INT_CST_LOW (op1) >= TYPE_PRECISION (type0))) warning ("right shift count >= width of type"); } @@ -2161,7 +2161,7 @@ build_binary_op (code, orig_op0, orig_op1, convert_p) if (tree_int_cst_sgn (op1) < 0) warning ("left shift count is negative"); else if (TREE_INT_CST_HIGH (op1) != 0 - || ((unsigned HOST_WIDE_INT) TREE_INT_CST_LOW (op1) + || ((HOST_WIDE_UINT) TREE_INT_CST_LOW (op1) >= TYPE_PRECISION (type0))) warning ("left shift count >= width of type"); } @@ -2189,7 +2189,7 @@ build_binary_op (code, orig_op0, orig_op1, convert_p) if (tree_int_cst_sgn (op1) < 0) warning ("shift count is negative"); else if (TREE_INT_CST_HIGH (op1) != 0 - || ((unsigned HOST_WIDE_INT) TREE_INT_CST_LOW (op1) + || ((HOST_WIDE_UINT) TREE_INT_CST_LOW (op1) >= TYPE_PRECISION (type0))) warning ("shift count >= width of type"); } |