summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/internal/perk_reader_impl.h2
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)