summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-26 01:42:23 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-26 01:42:23 +0000
commit85bc4e4e5feab1a5d9c037ac09bafd75cf36205b (patch)
tree3aa3c4b3f8c89ba25e103e35b783bb78c4f4f1c3
parent90cc7820c1f167a58ff381a18ec292405e4c9db4 (diff)
downloadgcc-85bc4e4e5feab1a5d9c037ac09bafd75cf36205b.tar.gz
* gettextP.h (SWAP): Change parameter type to unsigned int.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53878 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/intl/ChangeLog4
-rw-r--r--gcc/intl/gettextP.h8
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/intl/ChangeLog b/gcc/intl/ChangeLog
index 019e30024ab..1fe7f37090b 100644
--- a/gcc/intl/ChangeLog
+++ b/gcc/intl/ChangeLog
@@ -1,3 +1,7 @@
+2002-05-25 Roman Lechtchinsky <rl@cs.tu-berlin.de>
+
+ * gettextP.h (SWAP): Change parameter type to unsigned int.
+
Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
* localealias.c (strings.h): Include.
diff --git a/gcc/intl/gettextP.h b/gcc/intl/gettextP.h
index 5a925519e56..31f6d2c1985 100644
--- a/gcc/intl/gettextP.h
+++ b/gcc/intl/gettextP.h
@@ -63,12 +63,14 @@
# 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