forked from Ports/perfect_dark
port: fix alreadySwapped
how the fuck did this work fine before?
This commit is contained in:
1 parent
ee4434eb6c
commit
d1d11b9362
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user