]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gettextP.h (SWAP): Change parameter type to unsigned int.
authorRoman Lechtchinsky <rl@cs.tu-berlin.de>
Sun, 26 May 2002 01:43:14 +0000 (01:43 +0000)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 26 May 2002 01:43:14 +0000 (18:43 -0700)
From-SVN: r53879

gcc/intl/ChangeLog
gcc/intl/gettextP.h

index e693b211453514bb5708a31364c26333a4356306..e702f26a28ec08f27fa8da6bbc73b469e18f039f 100644 (file)
@@ -1,3 +1,7 @@
+2002-05-25  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
+
+       * gettextP.h (SWAP): Change parameter type to unsigned int.
+
 2002-05-14  Release Manager
 
        * GCC 3.1 Released.
index 5a925519e567df7a657974179786a9a3cf66a7df..31f6d2c19856b7aa7315fa45cc019591b8a89776 100644 (file)
 # include <byteswap.h>
 # define SWAP(i) bswap_32 (i)
 #else
-/* GCC LOCAL: Prototype first to avoid warnings.  */
-static inline nls_uint32 SWAP PARAMS ((nls_uint32));
+/* GCC LOCAL: Prototype first to avoid warnings; change argument to 
+   unsigned int to avoid K&R type promotion errors with 64-bit "int".  */
+static inline nls_uint32 SWAP PARAMS ((unsigned int));
 static inline nls_uint32
 SWAP (i)
-     nls_uint32 i;
+     unsigned int ii;
 {
+  nls_uint32 i = ii;
   return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24);
 }
 #endif