mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 00:02:43 +02:00
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