aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/s390/bits/byteswap-16.h
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2012-06-21 15:49:33 +0200
committerAndreas Jaeger <aj@suse.de>2012-06-21 15:49:33 +0200
commit2174c6dd8555f654c30df2f8f3321b69e0f736f8 (patch)
tree096e7dcef460ada575b6d0a34cc659c63f9fe83a /sysdeps/s390/bits/byteswap-16.h
parent416bf844227d37b043b16be28c9523eeaecd3de3 (diff)
downloadglibc-2174c6dd8555f654c30df2f8f3321b69e0f736f8.tar
glibc-2174c6dd8555f654c30df2f8f3321b69e0f736f8.tar.gz
glibc-2174c6dd8555f654c30df2f8f3321b69e0f736f8.tar.bz2
glibc-2174c6dd8555f654c30df2f8f3321b69e0f736f8.zip
Avoid -Wconversion warning for htons
Diffstat (limited to 'sysdeps/s390/bits/byteswap-16.h')
-rw-r--r--sysdeps/s390/bits/byteswap-16.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/s390/bits/byteswap-16.h b/sysdeps/s390/bits/byteswap-16.h
index 8bfec78ffe..126f382145 100644
--- a/sysdeps/s390/bits/byteswap-16.h
+++ b/sysdeps/s390/bits/byteswap-16.h
@@ -28,7 +28,7 @@
# if __WORDSIZE == 64
# define __bswap_16(x) \
(__extension__ \
- ({ unsigned short int __v, __x = (x); \
+ ({ unsigned short int __v, __x = (unsigned short int) (x); \
if (__builtin_constant_p (x)) \
__v = __bswap_constant_16 (__x); \
else { \
@@ -41,7 +41,7 @@
# else
# define __bswap_16(x) \
(__extension__ \
- ({ unsigned short int __v, __x = (x); \
+ ({ unsigned short int __v, __x = (unsigned short int) (x); \
if (__builtin_constant_p (x)) \
__v = __bswap_constant_16 (__x); \
else { \