X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=libpcsxcore%2Fpsxmem.h;fp=libpcsxcore%2Fpsxmem.h;h=4e95c4dd11cd5a344510d405cef91e8057e6c9bc;hp=f3c2051b875392c7d4aed35731e0ae1081729fca;hb=9454d33991e921f526c0c6fddb6c1be057ba8ab3;hpb=c9f729d05b31bba1988b9336233f080421c16de5 diff --git a/libpcsxcore/psxmem.h b/libpcsxcore/psxmem.h index f3c2051b..4e95c4dd 100644 --- a/libpcsxcore/psxmem.h +++ b/libpcsxcore/psxmem.h @@ -125,7 +125,8 @@ static inline void * psxm_lut(u32 mem, int write, u8 **lut) if (!DISABLE_MEM_LUTS) { void *ptr = lut[mem >> 16]; - return ptr == INVALID_PTR ? INVALID_PTR : ptr + (u16)mem; + return ptr == INVALID_PTR ? INVALID_PTR + : (void *)((uintptr_t)ptr + (u16)mem); } if (mem >= 0xa0000000)