about summary refs log tree commit diff
path: root/sysdeps/s390/bits/byteswap.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.h
parent416bf844227d37b043b16be28c9523eeaecd3de3 (diff)
downloadglibc-2174c6dd8555f654c30df2f8f3321b69e0f736f8.tar.gz
glibc-2174c6dd8555f654c30df2f8f3321b69e0f736f8.tar.xz
glibc-2174c6dd8555f654c30df2f8f3321b69e0f736f8.zip
Avoid -Wconversion warning for htons
Diffstat (limited to 'sysdeps/s390/bits/byteswap.h')
-rw-r--r--sysdeps/s390/bits/byteswap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/s390/bits/byteswap.h b/sysdeps/s390/bits/byteswap.h
index e91d4ccb8f..3ae6436bb3 100644
--- a/sysdeps/s390/bits/byteswap.h
+++ b/sysdeps/s390/bits/byteswap.h
@@ -1,5 +1,5 @@
 /* Macros to swap the order of bytes in integer values.  s390 version.
-   Copyright (C) 2000-2003, 2008, 2011, 2012 Free Software Foundation, Inc.
+   Copyright (C) 2000-2012 Free Software Foundation, Inc.
    Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
    This file is part of the GNU C Library.
 
@@ -27,7 +27,7 @@
 #define _BITS_BYTESWAP_H 1
 
 #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>