mirror of
https://github.com/cc65/cc65.git
synced 2025-02-11 15:30:52 +00:00
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:
parent
ef412bc22c
commit
85584fb404
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user