]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* longlong.h (count_leading_zeros): Add missing casts to USItype.
authorJ"orn Rennecke <amylaar@cygnus.co.uk>
Mon, 20 Oct 1997 00:56:45 +0000 (00:56 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 20 Oct 1997 00:56:45 +0000 (18:56 -0600)
From-SVN: r16096

gcc/ChangeLog
gcc/longlong.h

index 89176b068f77406e9e0bbd3a996cdddeffaeaeaf..045496a91065ef3e04666f3fe1579b550e5aefd4 100644 (file)
@@ -1,3 +1,7 @@
+Sun Oct 19 19:00:35 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
+
+       * 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.
index d9055c2a177eebd3d083dc9a9ab9dcdf7d478bc9..c3160911eb1545a29109c2e5e211dcfa04adc13d 100644 (file)
@@ -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                                                               \
       {                                                                        \