Skip to content

Commit e7e77ba

Browse files
author
Thomas M. DuBuisson
committed
Fix warning, inlinePerformIO ~> unsafePerformIO
1 parent 2df53d6 commit e7e77ba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Data/Digest/Pure/MD5.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ import Crypto.Classes (Hash(..), hash)
5454
import Control.Monad (replicateM_)
5555
import Data.Tagged
5656
import Numeric
57+
#ifdef FastWordExtract
58+
import System.IO.Unsafe (unsafePerformIO)
59+
#endif
5760

5861
-- | Block size in bits
5962
md5BlockSize :: Int
@@ -240,7 +243,7 @@ applyMD5Rounds (MD5Par a b c d) w = {-# SCC "applyMD5Rounds" #-}
240243
{-# INLINE applyMD5Rounds #-}
241244

242245
#ifdef FastWordExtract
243-
getNthWord n b = inlinePerformIO (unsafeUseAsCString b (flip peekElemOff n . castPtr))
246+
getNthWord n b = unsafePerformIO (unsafeUseAsCString b (flip peekElemOff n . castPtr))
244247
{-# INLINE getNthWord #-}
245248
#else
246249
getNthWord :: Int -> B.ByteString -> Word32

0 commit comments

Comments
 (0)