mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-06 18:30:21 +08:00
tokhash: correct duplicate-token test
This commit is contained in:
parent
d555a64a7f
commit
309a8ba340
@ -95,7 +95,7 @@ while (defined($line = <TD>)) {
|
||||
} elsif ($line =~ /^([a-z0-9_-]+)/) {
|
||||
$token = $1;
|
||||
|
||||
if (defined($tokens{$reg})) {
|
||||
if (defined($tokens{$token})) {
|
||||
die "Duplicate definition: $token\n";
|
||||
}
|
||||
$tokens{$token} = scalar @tokendata;
|
||||
|
Loading…
x
Reference in New Issue
Block a user