diff options
author | midipix <writeonce@midipix.org> | 2016-05-06 15:59:52 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-10 23:35:47 -0500 |
commit | 7255eff9dd851c6db11f199216d233ddb50a9727 (patch) | |
tree | d8122720b91f4a74a4389d558056b0ba1869fadb | |
parent | 45bb870533cbbb02868b2214fea83c9c3f1c36e5 (diff) | |
download | perk-7255eff9dd851c6db11f199216d233ddb50a9727.tar.bz2 perk-7255eff9dd851c6db11f199216d233ddb50a9727.tar.xz |
internals: pe_swap_long(): improve readability via parentheses.
-rw-r--r-- | src/internal/perk_reader_impl.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) |