We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a04d938 commit 2ef63dfCopy full SHA for 2ef63df
Data/ByteString/Internal.hs
@@ -340,16 +340,16 @@ packChars cs = unsafePackLenChars (List.length cs) cs
340
341
unsafePackLenBytes :: Int -> [Word8] -> ByteString
342
unsafePackLenBytes len xs =
343
- unsafeCreate len $ \p -> foldr
+ unsafeCreate len $ \p0 -> foldr
344
(\x go p -> poke p x >> go (p `plusPtr` 1))
345
- (\_ -> return ()) xs p
+ (\_ -> return ()) xs p0
346
{-# INLINE unsafePackLenBytes #-}
347
348
unsafePackLenChars :: Int -> [Char] -> ByteString
349
unsafePackLenChars len cs =
350
351
(\x go p -> poke p (c2w x) >> go (p `plusPtr` 1))
352
- (\_ -> return ()) cs p
+ (\_ -> return ()) cs p0
353
{-# INLINE unsafePackLenChars #-}
354
355
0 commit comments