From 885d946458caccc4aa88d30c04ecf6380d5276e9 Mon Sep 17 00:00:00 2001 From: Nik Henson Date: Fri, 23 Dec 2011 19:34:50 +0000 Subject: [PATCH] Small bug fix --- Src/Debugger/CPUDebug.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Src/Debugger/CPUDebug.cpp b/Src/Debugger/CPUDebug.cpp index 448e500..f15dfde 100644 --- a/Src/Debugger/CPUDebug.cpp +++ b/Src/Debugger/CPUDebug.cpp @@ -951,7 +951,8 @@ namespace Debugger continue; UINT32 addr = mapped->addr; CRegion *region = GetRegion(addr); - for (int offset = -7; offset < mapped->size; offset++) + int intSize = (int)mapped->size; + for (int offset = -7; offset < intSize; offset++) { if (offset < 0 && addr < abs(offset) || offset > 0 && addr > 0xFFFFFFFF - offset) continue; @@ -990,7 +991,8 @@ namespace Debugger { UINT32 addr = (*it)->addr; CRegion *region = GetRegion(addr); - for (int offset = -7; offset < (*it)->size; offset++) + int intSize = (int)(*it)->size; + for (int offset = -7; offset < intSize; offset++) { if (offset < 0 && addr < abs(offset) || offset > 0 && addr > 0xFFFFFFFF - offset) continue;