From 85584fb40489dd5e1944c24ccd925a221aea23cd Mon Sep 17 00:00:00 2001 From: uz Date: Sat, 20 Aug 2011 21:53:22 +0000 Subject: [PATCH] Small change for better hash table distribution. git-svn-id: svn://svn.cc65.org/cc65/trunk@5237 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ca65/lineinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ca65/lineinfo.c b/src/ca65/lineinfo.c index 7e9edc60c..f4867fff2 100644 --- a/src/ca65/lineinfo.c +++ b/src/ca65/lineinfo.c @@ -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); } -- 2.39.5