Skip to content
Browse files

Make a variable local

  • Loading branch information...
1 parent 09fe7f1 commit 2d8284f6c67583b71ecece734239e7e737da5a87 @bos committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 Data/Text/Search.hs
View
2 Data/Text/Search.hs
@@ -80,7 +80,7 @@ indices _needle@(Text narr noff nlen) _haystack@(Text harr hoff hlen)
delta | nextInPattern = nlen + 1
| c == z = skip + 1
| otherwise = 1
- nextInPattern = mask .&. swizzle (hindex' (i+nlen)) == 0
+ where nextInPattern = mask .&. swizzle (hindex' (i+nlen)) == 0
!(mask :* skip) = buildTable 0 0 (nlen-2)
scanOne c = loop 0
where loop !i | i >= hlen = []

0 comments on commit 2d8284f

Please sign in to comment.
Something went wrong with that request. Please try again.