diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/byteorder.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/byteorder.h b/lib/util/byteorder.h index 26268ac93cd..e8664e95538 100644 --- a/lib/util/byteorder.h +++ b/lib/util/byteorder.h @@ -138,7 +138,7 @@ it also defines lots of intermediate macros, just ignore those :-) /* now the reverse routines - these are used in nmb packets (mostly) */ #define SREV(x) ((((x)&0xFF)<<8) | (((x)>>8)&0xFF)) -#define IREV(x) ((SREV(x)<<16) | (SREV((x)>>16))) +#define IREV(x) ((SREV((uint32_t)x)<<16) | (SREV(((uint32_t)x)>>16))) #define BREV(x) ((IREV((uint64_t)x)<<32) | (IREV(((uint64_t)x)>>32))) /**************************************************************************** |