0004-endian_h-parentheses.patch (542B)
1 --- include.orig/endian.h 2023-04-12 20:33:08.488956542 +0200 2 +++ include/endian.h 2023-04-12 20:34:08.059194630 +0200 3 @@ -23,12 +23,12 @@ 4 5 static __inline uint32_t __bswap32(uint32_t __x) 6 { 7 - return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24; 8 + return (__x>>24) | ((__x>>8)&0xff00) | ((__x<<8)&0xff0000) | __x<<24; 9 } 10 11 static __inline uint64_t __bswap64(uint64_t __x) 12 { 13 - return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32); 14 + return ((__bswap32(__x)+0ULL)<<32) | __bswap32(__x>>32); 15 } 16 17 #if __BYTE_ORDER == __LITTLE_ENDIAN