Skip to content

Commit

Permalink
fix missing update of name_is_used() call
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanSchippers committed Oct 3, 2023
1 parent 24bc44a commit d441ba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/token.c
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ void check_unique_names(int rename)
if(xctx->inst[i].instname && xctx->inst[i].instname[0]) {
if(xctx->inst[i].ptr == -1) continue;
if(!(xctx->inst[i].ptr+ xctx->sym)->type) continue;
used = name_is_used(xctx->inst[i].instname);
used = name_is_used(xctx->inst[i].instname, -1);
hash_names(i, XINSERT_NOREPLACE);
if( used != -1 && used != i) {
dbg(0, "check_unique_names(): found duplicate: i=%d name=%s\n", i, xctx->inst[i].instname);
Expand Down

0 comments on commit d441ba6

Please sign in to comment.