Fix bug where an object's invalid ROMX bank of 0 could break rgblink (#1868)

This commit is contained in:
Rangi
2025-12-05 11:21:00 -05:00
committed by GitHub
parent 1c00123b33
commit 3631fab63c
2 changed files with 6 additions and 9 deletions

View File

@@ -122,8 +122,9 @@ static std::optional<size_t> getPlacement(Section const &section, MemoryLocation
if (location.bank < typeInfo.firstBank
|| location.bank >= memory[section.type].size() + typeInfo.firstBank) {
fatal(
"Invalid bank for %s section: 0x%02x",
"Invalid bank for %s section \"%s\": %" PRIu32,
sectionTypeInfo[section.type].name.c_str(),
section.name.c_str(),
location.bank
);
}