Skip to content
Snippets Groups Projects
Commit ffd12b9a authored by Simon Marlow's avatar Simon Marlow Committed by pcapriotti
Browse files

fix bug in instance HpcHash (a,b) (GHC ticket #5944)

MERGED from commit 4d661848
parent 20a80c4c
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,7 @@ instance HpcHash a => HpcHash [a] where
toHash xs = foldl' (\ h c -> toHash c `hxor` (h * 33)) 5381 xs
instance (HpcHash a,HpcHash b) => HpcHash (a,b) where
toHash (a,b) = toHash a * 33 `hxor` toHash b
toHash (a,b) = (toHash a * 33) `hxor` toHash b
instance HpcHash HpcPos where
toHash (P a b c d) = Hash $ fromIntegral $ a * 0x1000000 + b * 0x10000 + c * 0x100 + d
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment