[project @ 2005-08-12 14:43:04 by simonpj]
authorsimonpj <unknown>
Fri, 12 Aug 2005 14:43:04 +0000 (14:43 +0000)
committersimonpj <unknown>
Fri, 12 Aug 2005 14:43:04 +0000 (14:43 +0000)
Fix typos

ghc/compiler/utils/FastString.lhs

index 0f9772c..52512d3 100644 (file)
@@ -399,7 +399,7 @@ hashSubStrBA ba# start# len# = loop 0# 0#
 
 hashUnicode :: [Int] -> Int# -> Int#
 hashUnicode [] h = h
-hashUnicode (I# c : cs) h = hashUnicode cs ((ord# c + (h *# 128)) `remInt#` hASH_TBL_SIZE#)
+hashUnicode (I# c : cs) h = hashUnicode cs ((c +# (h *# 128#)) `remInt#` hASH_TBL_SIZE#)
 \end{code}
 
 \begin{code}