mirror of
https://github.com/composewell/streamly.git
synced 2024-09-11 11:37:22 +03:00
Bug fix offset calculation
This commit is contained in:
parent
960dc0b738
commit
0650565799
@ -397,7 +397,9 @@ mkDeserializeExpr initialOff endOff deserializeWithKeys con = do
|
||||
if hlen1 == $(litIntegral hlen)
|
||||
then if $(xorCmp hval hOff _arr)
|
||||
then do
|
||||
let $(varP (makeI 0)) = $(litIntegral (hlen + 4 + 4))
|
||||
let $(varP (makeI 0)) =
|
||||
$(varE initialOff) +
|
||||
$(litIntegral (hlen + 4 + 4))
|
||||
$(mkDeserializeExprOne 'deserializeWithSize con)
|
||||
else $(varE deserializeWithKeys)
|
||||
$(varE hOff)
|
||||
|
Loading…
Reference in New Issue
Block a user