fix another old version's memcpy

This commit is contained in:
Vincent Hanquez 2015-03-30 16:02:00 +01:00
parent 4a6bfe98fc
commit c991abda23

View File

@ -145,6 +145,6 @@ diffuse hashF src sz = loop src 0
poke (ptr `plusPtr` 2) (f8 (n `shiftR` 8))
poke (ptr `plusPtr` 3) (f8 n)
--putWord32BE (fromIntegral n) >> putBytes src)
withBytePtr b $ \srcPtr -> B.memcpy (ptr `plusPtr` 4) srcPtr (B.length b)
withBytePtr b $ \srcPtr -> B.memcpy (ptr `plusPtr` 4) srcPtr (fromIntegral $ B.length b)
where f8 :: Int -> Word8
f8 = fromIntegral