From 7255eff9dd851c6db11f199216d233ddb50a9727 Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 6 May 2016 15:59:52 -0400 Subject: internals: pe_swap_long(): improve readability via parentheses. --- src/internal/perk_reader_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/internal') diff --git a/src/internal/perk_reader_impl.h b/src/internal/perk_reader_impl.h index fc5e372..e3b3c6f 100644 --- a/src/internal/perk_reader_impl.h +++ b/src/internal/perk_reader_impl.h @@ -22,7 +22,7 @@ static inline uint16_t pe_read_short(const unsigned char * raw) static inline uint32_t pe_swap_long(uint32_t x) { - return x<<24 | (x<<8) & 0xff0000 | (x>>8) & 0xff00 | x>>24; + return x<<24 | ((x<<8) & 0xff0000) | ((x>>8) & 0xff00) | x>>24; } static inline uint32_t pe_read_long(const unsigned char * raw) -- cgit v1.2.3