mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 13:55:38 +00:00
Small bug fix
This commit is contained in:
parent
68554108ac
commit
885d946458
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue