Skip to content

Commit

Permalink
Fix the build
Browse files Browse the repository at this point in the history
aa79cf8 appeared to cleanly rebase,
becoming 0b0aa9d. But this was a lie!
The guts of stimes became more monomorphic in 0.12, so this commit
removed a 'fromIntegral' that is necessary only in the 0.11 branch.

Not catching this before pushing was definitely my bad. Sorry!
  • Loading branch information
clyring committed Jun 13, 2023
1 parent 0f9bdd4 commit 834bbe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Data/ByteString/Internal/Type.hs
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ times n (BS fp len)
| len == 1 = unsafeCreateFp size $ \destfptr -> do
byte <- peekFp fp
unsafeWithForeignPtr destfptr $ \destptr ->
fillBytes destptr byte n
fillBytes destptr byte (fromIntegral n)
| otherwise = unsafeCreateFp size $ \destptr -> do
memcpyFp destptr fp len
fillFrom destptr len
Expand Down

0 comments on commit 834bbe4

Please sign in to comment.