mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Avoid using std::get except in holds_alternative-asserting accessors
This commit is contained in:
@@ -347,7 +347,7 @@ static void writeSymBank(SortedSections const &bankSections, enum SectionType ty
|
||||
if (!sym->name.empty() && canStartSymName(sym->name[0]))
|
||||
symList.push_back({
|
||||
.sym = sym,
|
||||
.addr = (uint16_t)(std::get<Label>(sym->data).offset + sect->org)
|
||||
.addr = (uint16_t)(sym->label().offset + sect->org)
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -417,7 +417,7 @@ static void writeMapBank(SortedSections const §List, enum SectionType type,
|
||||
for (Symbol *sym : sect->symbols)
|
||||
// Space matches "\tSECTION: $xxxx ..."
|
||||
fprintf(mapFile, "\t $%04" PRIx32 " = %s\n",
|
||||
std::get<Label>(sym->data).offset + org,
|
||||
sym->label().offset + org,
|
||||
sym->name.c_str());
|
||||
|
||||
if (sect->nextu) {
|
||||
|
||||
Reference in New Issue
Block a user