Qt: Fix off-by-one in edit RAM callback

This commit is contained in:
Stenzek
2026-05-03 21:25:19 +10:00
parent f7d937cb05
commit acbb76c00d
+1 -1
View File
@@ -569,7 +569,7 @@ void DebuggerWindow::setMemoryViewRegion(Bus::MemoryRegion region)
static constexpr auto edit_ram_callback = [](size_t offset, size_t count) {
// shouldn't happen
if (offset > Bus::g_ram_size)
if (offset >= Bus::g_ram_size)
return;
const u32 start_page = static_cast<u32>(offset) >> HOST_PAGE_SHIFT;