From b718f1587190a6418d994dedc32e71c97d1bf1ac Mon Sep 17 00:00:00 2001 From: law Date: Mon, 20 Oct 1997 00:56:45 +0000 Subject: [PATCH] * longlong.h (count_leading_zeros): Add missing casts to USItype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16096 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/longlong.h | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 89176b068f7..045496a9106 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Sun Oct 19 19:00:35 1997 J"orn Rennecke + + * longlong.h (count_leading_zeros): Add missing casts to USItype. + Sun Oct 19 18:44:06 1997 Jeffrey A Law (law@cygnus.com) * i386/bsd386.h (ASM_COMMENT_START): Define. diff --git a/gcc/longlong.h b/gcc/longlong.h index d9055c2a177..c3160911eb1 100644 --- a/gcc/longlong.h +++ b/gcc/longlong.h @@ -1236,9 +1236,9 @@ extern const UQItype __clz_tab[]; \ if (SI_TYPE_SIZE <= 32) \ { \ - __a = __xr < (1<<2*__BITS4) \ - ? (__xr < (1<<__BITS4) ? 0 : __BITS4) \ - : (__xr < (1<<3*__BITS4) ? 2*__BITS4 : 3*__BITS4); \ + __a = __xr < ((USItype)1<<2*__BITS4) \ + ? (__xr < ((USItype)1<<__BITS4) ? 0 : __BITS4) \ + : (__xr < ((USItype)1<<3*__BITS4) ? 2*__BITS4 : 3*__BITS4); \ } \ else \ { \ -- 2.11.0