mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-11 07:00:49 +03:00
Fix an off-by-one error in the implementation of 'split'.
This was causing incorrect computation in examples/MiniLock/prim/Blake2s.cry.
This commit is contained in:
parent
2e15d4f443
commit
1c5f786811
@ -665,7 +665,7 @@ extractWordVal len start (WordVal w) =
|
||||
WordVal $ extractWord len start w
|
||||
extractWordVal len start (BitsVal bs) =
|
||||
BitsVal $ Seq.take (fromInteger len) $
|
||||
Seq.drop (Seq.length bs - fromInteger start - fromInteger len - 1) bs
|
||||
Seq.drop (Seq.length bs - fromInteger start - fromInteger len) bs
|
||||
|
||||
|
||||
-- | Split implementation.
|
||||
|
Loading…
Reference in New Issue
Block a user