aboutsummaryrefslogtreecommitdiff
path: root/gcc/intl
diff options
context:
space:
mode:
authorRoman Lechtchinsky <rl@cs.tu-berlin.de>2001-07-06 21:32:49 +0000
committerRichard Henderson <rth@gcc.gnu.org>2001-07-06 14:32:49 -0700
commit9fecb07186b77b17d0e544e71c25d3fa45ef89e9 (patch)
treed30d1854c5f1390d4d9a24b27b64f525cdf85efb /gcc/intl
parent8fa2140d42bf1fe983ca5f5fec9c107ee6fb57c3 (diff)
downloadgcc-9fecb07186b77b17d0e544e71c25d3fa45ef89e9.zip
gcc-9fecb07186b77b17d0e544e71c25d3fa45ef89e9.tar.gz
gcc-9fecb07186b77b17d0e544e71c25d3fa45ef89e9.tar.bz2
* gettextP.h (SWAP): Change parameter type to unsigned int.
From-SVN: r43824
Diffstat (limited to 'gcc/intl')
-rw-r--r--gcc/intl/ChangeLog4
-rw-r--r--gcc/intl/gettextP.h7
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/intl/ChangeLog b/gcc/intl/ChangeLog
index a3c86fb..f87452e 100644
--- a/gcc/intl/ChangeLog
+++ b/gcc/intl/ChangeLog
@@ -1,3 +1,7 @@
+2001-07-06 Roman Lechtchinsky <rl@cs.tu-berlin.de>
+
+ * gettextP.h (SWAP): Change parameter type to unsigned int.
+
2001-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* po2tbl.sed.in: Fixed typo.
diff --git a/gcc/intl/gettextP.h b/gcc/intl/gettextP.h
index 00c5203..1b69b28 100644
--- a/gcc/intl/gettextP.h
+++ b/gcc/intl/gettextP.h
@@ -44,13 +44,14 @@
# include <byteswap.h>
# define SWAP(i) bswap_32 (i)
#else
-static nls_uint32 SWAP PARAMS ((nls_uint32 i));
+static nls_uint32 SWAP PARAMS ((unsigned int i));
static inline nls_uint32
SWAP (i)
- nls_uint32 i;
+ unsigned int i;
{
- return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24);
+ nls_uint32 x = (nls_uint32) i;
+ return (x << 24) | ((x & 0xff00) << 8) | ((x >> 8) & 0xff00) | (x >> 24);
}
#endif