1
0
forked from GitHub/gf-core

Replaced inlinePerformIO with accursedUnutterablePerformIO

This commit is contained in:
Liyana
2020-11-10 17:01:47 +08:00
parent ac81b418d6
commit dc6dd988bc
2 changed files with 3 additions and 3 deletions

View File

@@ -423,7 +423,7 @@ readN n f = fmap f $ getBytes n
getPtr :: Storable a => Int -> Get a
getPtr n = do
(fp,o,_) <- readN n B.toForeignPtr
return . B.inlinePerformIO $ withForeignPtr fp $ \p -> peek (castPtr $ p `plusPtr` o)
return . B.accursedUnutterablePerformIO $ withForeignPtr fp $ \p -> peek (castPtr $ p `plusPtr` o)
{- INLINE getPtr -}
------------------------------------------------------------------------