diff options
Diffstat (limited to 'src/Data')
-rw-r--r-- | src/Data/Word64RangeMap.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Data/Word64RangeMap.hs b/src/Data/Word64RangeMap.hs index 36428233..0b25f56d 100644 --- a/src/Data/Word64RangeMap.hs +++ b/src/Data/Word64RangeMap.hs | |||
@@ -96,7 +96,7 @@ lookupArray i r = do | |||
96 | ra <- readRefArray r | 96 | ra <- readRefArray r |
97 | (zr,nr) <- getBounds ra -- bounds of mutable range array | 97 | (zr,nr) <- getBounds ra -- bounds of mutable range array |
98 | let (dr,mr) = (nr+1 - zr) `divMod` 2 | 98 | let (dr,mr) = (nr+1 - zr) `divMod` 2 |
99 | lookupArrayHelper i r (zr+dr+mr) zr nr | 99 | lookupArrayHelper i r (zr+dr+mr-1) zr nr |
100 | 100 | ||
101 | lookupArrayHelper :: RangeArray ra m b ref => Index -> RangeMap ra b ref | 101 | lookupArrayHelper :: RangeArray ra m b ref => Index -> RangeMap ra b ref |
102 | -> OuterIndex{- current position -} | 102 | -> OuterIndex{- current position -} |