diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-02 09:46:17 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-02 09:46:17 +0000 |
commit | d59ffb8fc1c4bc3905df4cedb457635343f033cf (patch) | |
tree | 38fd12268a9596d8b1c5ff75d645982be50d4149 /gcc/convert.c | |
parent | 33b4017aaf25885030e12cdeb0cc897981fa78aa (diff) | |
download | gcc-d59ffb8fc1c4bc3905df4cedb457635343f033cf.tar.gz |
2005-12-02 Richard Guenther <rguenther@suse.de>
* convert.c (convert_to_integer): Fix compare for nonpositive
constant to use tree_int_cst_sgn <= 0.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107882 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/convert.c')
-rw-r--r-- | gcc/convert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/convert.c b/gcc/convert.c index ece3637e93d..49d4a3ac5d6 100644 --- a/gcc/convert.c +++ b/gcc/convert.c @@ -500,7 +500,7 @@ convert_to_integer (tree type, tree expr) /* We can pass truncation down through right shifting when the shift count is a nonpositive constant. */ if (TREE_CODE (TREE_OPERAND (expr, 1)) == INTEGER_CST - && tree_int_cst_sgn (TREE_OPERAND (expr, 1)) < 0) + && tree_int_cst_sgn (TREE_OPERAND (expr, 1)) <= 0) goto trunc1; break; |