diff options
author | Andreas Jaeger <aj@suse.de> | 2012-06-21 15:49:33 +0200 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2012-06-21 15:49:33 +0200 |
commit | 2174c6dd8555f654c30df2f8f3321b69e0f736f8 (patch) | |
tree | 096e7dcef460ada575b6d0a34cc659c63f9fe83a /bits/byteswap.h | |
parent | 416bf844227d37b043b16be28c9523eeaecd3de3 (diff) | |
download | glibc-2174c6dd8555f654c30df2f8f3321b69e0f736f8.zip glibc-2174c6dd8555f654c30df2f8f3321b69e0f736f8.tar.gz glibc-2174c6dd8555f654c30df2f8f3321b69e0f736f8.tar.bz2 |
Avoid -Wconversion warning for htons
Diffstat (limited to 'bits/byteswap.h')
-rw-r--r-- | bits/byteswap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bits/byteswap.h b/bits/byteswap.h index d818293..3ca0ad6 100644 --- a/bits/byteswap.h +++ b/bits/byteswap.h @@ -27,7 +27,7 @@ /* Swap bytes in 16 bit value. */ #define __bswap_constant_16(x) \ - ((((x) >> 8) & 0xffu) | (((x) & 0xffu) << 8)) + ((unsigned short int)((((x) >> 8) & 0xffu) | (((x) & 0xffu) << 8))) /* Get __bswap_16. */ #include <bits/byteswap-16.h> |