We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 08c818a + 3981092 commit 38e3f37Copy full SHA for 38e3f37
src/HaskellWorks/Data/Xml/Succinct/Cursor/Create.hs
@@ -23,8 +23,10 @@ byteStringAsSlowCursor bs = XmlCursor
23
, balancedParens = SimpleBalancedParens bp
24
, cursorRank = 1
25
}
26
- where blankedXml = bsToBlankedXml bs
27
- (ib, bp) = construct64UnzipN (BS.length bs) (I.toIbBp64 blankedXml)
+ where blankedXml = bsToBlankedXml bs
+ bsLen = BS.length bs
28
+ idxLen = (bsLen + 7) `div` 8
29
+ (ib, bp) = construct64UnzipN idxLen (I.toIbBp64 blankedXml)
30
31
byteStringAsFastCursor :: BS.ByteString -> FastCursor
32
byteStringAsFastCursor bs = XmlCursor bs ibCsPoppy rangeMinMax r
0 commit comments