From 0c41943a4d6dc2ce7fbf1ee90d9000852f177a89 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 1 Aug 2012 20:56:03 -0400 Subject: 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 --- ports/sysdeps/ia64/bits/byteswap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ports/sysdeps/ia64/bits/byteswap.h') 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 -- cgit v1.2.3