mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 22:05:38 +00:00
Small bug fix
This commit is contained in:
parent
68554108ac
commit
885d946458
|
@ -951,7 +951,8 @@ namespace Debugger
|
||||||
continue;
|
continue;
|
||||||
UINT32 addr = mapped->addr;
|
UINT32 addr = mapped->addr;
|
||||||
CRegion *region = GetRegion(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)
|
if (offset < 0 && addr < abs(offset) || offset > 0 && addr > 0xFFFFFFFF - offset)
|
||||||
continue;
|
continue;
|
||||||
|
@ -990,7 +991,8 @@ namespace Debugger
|
||||||
{
|
{
|
||||||
UINT32 addr = (*it)->addr;
|
UINT32 addr = (*it)->addr;
|
||||||
CRegion *region = GetRegion(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)
|
if (offset < 0 && addr < abs(offset) || offset > 0 && addr > 0xFFFFFFFF - offset)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue