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:
H. Peter Anvin 2007-08-31 06:06:17 +00:00
parent 9e4dba2f47
commit 535af831f1

View File

@ -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";