Small change for better hash table distribution.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5237 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -128,7 +128,7 @@ static unsigned HT_GenHash (const void* Key)
|
||||
const LineInfoKey* K = Key;
|
||||
|
||||
/* Hash over a combination of type, file and line */
|
||||
return HashInt ((K->Type << 18) ^ (K->Pos.Name << 14) ^ K->Pos.Line);
|
||||
return HashInt ((K->Type << 21) ^ (K->Pos.Name << 14) ^ K->Pos.Line);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user