mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Merge pull request #604 from NieDzejkob/narg-overwrite
Don't overwrite symbol when it's not allowed
This commit is contained in:
@@ -409,6 +409,7 @@ struct Symbol *sym_AddSet(char const *symName, int32_t value)
|
||||
symName, sym->type == SYM_LABEL ? "label" : "constant");
|
||||
dumpFilename(sym);
|
||||
putc('\n', stderr);
|
||||
return sym;
|
||||
} else {
|
||||
/* TODO: can the scope be incorrect when taking over refs? */
|
||||
updateSymbolFilename(sym);
|
||||
|
||||
Reference in New Issue
Block a user