aboutsummaryrefslogtreecommitdiff
path: root/gcc/double-int.c
diff options
context:
space:
mode:
authorChao-ying Fu <fu@mips.com>2007-08-06 23:18:57 +0000
committerChao-ying Fu <chaoyingfu@gcc.gnu.org>2007-08-06 23:18:57 +0000
commit1e1ba002882f40d2e8bdc6aebda39e15183e4f92 (patch)
treeaddc6eca4349b2f6c3297a7faaeaf123e6da7c68 /gcc/double-int.c
parent19c222f890b08f00f999b2853b09a0152ac423fb (diff)
downloadgcc-1e1ba002882f40d2e8bdc6aebda39e15183e4f92.zip
gcc-1e1ba002882f40d2e8bdc6aebda39e15183e4f92.tar.gz
gcc-1e1ba002882f40d2e8bdc6aebda39e15183e4f92.tar.bz2
fixed-value.h: New file.
* fixed-value.h: New file. * fixed-value.c: New file. * Makefile.in (OBJS-common): Add fixed-value.o. (fixed-value.o): New rule. (GTFILES): Add fixed-value.h. * double-int.c (double_int_scmp): We should use unsigned HOST_WIDE_INT to compare a.low and b.low. * gengtype.c (main): Handle FIXED_VALUE_TYPE type as scalar typedef. From-SVN: r127260
Diffstat (limited to 'gcc/double-int.c')
-rw-r--r--gcc/double-int.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/double-int.c b/gcc/double-int.c
index f8dd0b5..2ab5055 100644
--- a/gcc/double-int.c
+++ b/gcc/double-int.c
@@ -362,9 +362,9 @@ double_int_scmp (double_int a, double_int b)
return -1;
if (a.high > b.high)
return 1;
- if ((HOST_WIDE_INT) a.low < (HOST_WIDE_INT) b.low)
+ if (a.low < b.low)
return -1;
- if ((HOST_WIDE_INT) a.low > (HOST_WIDE_INT) b.low)
+ if (a.low > b.low)
return 1;
return 0;