mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-06 18:30:21 +08:00
tokhash.pl: "ix" should have the same width as the "hash" arrays
For correctness in case of a very "linear" graph, "ix" needs to have the same width as the "hash" arrays.
This commit is contained in:
parent
9e4dba2f47
commit
535af831f1
@ -171,7 +171,9 @@ print "\t};\n\n";
|
||||
|
||||
print "\tuint32_t k1 = 0, k2 = 0;\n";
|
||||
print "\tuint8_t c;\n";
|
||||
print "\tunsigned int ix;\n";
|
||||
# For correct overflow behavior, "ix" should be unsigned of the same
|
||||
# width as the hash arrays.
|
||||
print "\tuint16_t ix;\n";
|
||||
print "\tconst struct tokendata *data;\n";
|
||||
print "\tconst char *p = token;\n";
|
||||
print "\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user