diff options
author | chaoyingfu <chaoyingfu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-06 23:18:57 +0000 |
---|---|---|
committer | chaoyingfu <chaoyingfu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-06 23:18:57 +0000 |
commit | 5efd9b45c3936d9707b975a0a3145a9e1aa8faeb (patch) | |
tree | addc6eca4349b2f6c3297a7faaeaf123e6da7c68 /gcc/double-int.c | |
parent | 40555542b7fab2e5b54b7356f51ae1a322127712 (diff) | |
download | gcc-5efd9b45c3936d9707b975a0a3145a9e1aa8faeb.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127260 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/double-int.c')
-rw-r--r-- | gcc/double-int.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/double-int.c b/gcc/double-int.c index f8dd0b519d8..2ab505584f8 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; |