From: Ian Lynagh Date: Mon, 12 Mar 2007 11:35:55 +0000 (+0000) Subject: copyBytes copies bytes, not elements; fixes trac #1203 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=b66a730b881d05c34c0dfe2da052b5fa01429244;p=ghc-base.git copyBytes copies bytes, not elements; fixes trac #1203 --- diff --git a/Foreign/Marshal/Utils.hs b/Foreign/Marshal/Utils.hs index f1071f9..4e03055 100644 --- a/Foreign/Marshal/Utils.hs +++ b/Foreign/Marshal/Utils.hs @@ -161,7 +161,7 @@ withMany withFoo (x:xs) f = withFoo x $ \x' -> copyBytes :: Ptr a -> Ptr a -> Int -> IO () copyBytes dest src size = memcpy dest src (fromIntegral size) --- |Copies the given number of elements from the second area (source) into the +-- |Copies the given number of bytes from the second area (source) into the -- first (destination); the copied areas /may/ overlap -- moveBytes :: Ptr a -> Ptr a -> Int -> IO ()