Skip to content

Commit d48bda6

Browse files
committed
Memory Editor - Fix off-by-one error when clearing cache
This only affects the very last byte in valid memory, but it should still be cleared nonetheless.
1 parent 4b516f5 commit d48bda6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ttyd-tools/rel/source/memory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,9 +1455,9 @@ uint32_t memoryEditorButtonControls()
14551455
Start = 0x80000000;
14561456
}
14571457

1458-
if (End > 0x817FFFFF)
1458+
if (End > 0x81800000)
14591459
{
1460-
End = 0x817FFFFF;
1460+
End = 0x81800000;
14611461
}
14621462

14631463
uint32_t Size = End - Start;

0 commit comments

Comments
 (0)