diff options
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 d818293a4c..3ca0ad6986 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> |