aboutsummaryrefslogtreecommitdiff
path: root/ports/sysdeps/ia64/bits/byteswap.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-08-01 20:56:03 -0400
committerMike Frysinger <vapier@gentoo.org>2012-08-03 12:08:51 -0400
commit0c41943a4d6dc2ce7fbf1ee90d9000852f177a89 (patch)
tree0c029a31ee49afc1bf40f852a3ffc3b4d8336976 /ports/sysdeps/ia64/bits/byteswap.h
parentbca393295a36ed9aba92df3209af48d6ffe571e3 (diff)
downloadglibc-0c41943a4d6dc2ce7fbf1ee90d9000852f177a89.tar
glibc-0c41943a4d6dc2ce7fbf1ee90d9000852f177a89.tar.gz
glibc-0c41943a4d6dc2ce7fbf1ee90d9000852f177a89.tar.bz2
glibc-0c41943a4d6dc2ce7fbf1ee90d9000852f177a89.zip
ia64: fix byteswap conversion warning
Same fix as went in for other architectures. URL: http://sourceware.org/bugzilla/show_bug.cgi?id=12194 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'ports/sysdeps/ia64/bits/byteswap.h')
-rw-r--r--ports/sysdeps/ia64/bits/byteswap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/sysdeps/ia64/bits/byteswap.h b/ports/sysdeps/ia64/bits/byteswap.h
index 68612487d3..d363c3e1cf 100644
--- a/ports/sysdeps/ia64/bits/byteswap.h
+++ b/ports/sysdeps/ia64/bits/byteswap.h
@@ -25,7 +25,7 @@
/* Swap bytes in 16 bit value. */
#define __bswap_constant_16(x) \
- ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))
+ ((unsigned short int)((((x) >> 8) & 0xff) | (((x) & 0xff) << 8)))
/* Get __bswap_16. */
#include <bits/byteswap-16.h>