From d1d11b9362ecfcee888afe615cd1e11207ab5b8e Mon Sep 17 00:00:00 2001 From: fgsfds Date: Sun, 24 Sep 2023 22:41:46 +0200 Subject: [PATCH] port: fix alreadySwapped how the fuck did this work fine before? --- port/src/preprocess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/port/src/preprocess.c b/port/src/preprocess.c index acb4a6023..9c2b5de8b 100644 --- a/port/src/preprocess.c +++ b/port/src/preprocess.c @@ -43,7 +43,7 @@ static inline u32 swapUnk(u32 x) { assert(0 && "unknown type"); return x; } static u8 swapmap[0x40000 >> 3]; static inline u32 alreadySwapped(const intptr_t addr) { - const u32 mask = (1 << (addr & 3)); + const u32 mask = (1 << (addr & 7)); const u32 old = swapmap[addr >> 3] & mask; if (!old) { swapmap[addr >> 3] |= mask;