diff --git a/rpcs3/Emu/RSX/RSXThread.cpp b/rpcs3/Emu/RSX/RSXThread.cpp index 90b5c6f76b..8cca45e57b 100644 --- a/rpcs3/Emu/RSX/RSXThread.cpp +++ b/rpcs3/Emu/RSX/RSXThread.cpp @@ -2400,7 +2400,7 @@ namespace rsx // Each bit represents io entry to be unmapped u64 unmap_status[512 / 64]{}; - for (u32 ea = address >> 20, end = ea + size >> 20; ea < end; ea++) + for (u32 ea = address >> 20, end = ea + (size >> 20); ea < end; ea++) { u32 io = RSXIOMem.io[ea];