[commit: packages/binary] master: Fix doc: Int64 are written as 8 bytes, not 4 (039918f)

git at git.haskell.org git at git.haskell.org
Thu Jan 22 22:36:15 UTC 2015


Repository : ssh://git@git.haskell.org/binary

On branch  : master
Link       : http://git.haskell.org/packages/binary.git/commitdiff/039918f447ac0840577a8887d32a09e447baa192

>---------------------------------------------------------------

commit 039918f447ac0840577a8887d32a09e447baa192
Author: JP Moresmau <jp at moresmau.fr>
Date:   Sat Jan 17 17:55:51 2015 +0100

    Fix doc: Int64 are written as 8 bytes, not 4


>---------------------------------------------------------------

039918f447ac0840577a8887d32a09e447baa192
 src/Data/Binary/Class.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Data/Binary/Class.hs b/src/Data/Binary/Class.hs
index 8a4bc25..8b7bc13 100644
--- a/src/Data/Binary/Class.hs
+++ b/src/Data/Binary/Class.hs
@@ -173,7 +173,7 @@ instance Binary Int32 where
     put i   = put (fromIntegral i :: Word32)
     get     = liftM fromIntegral (get :: Get Word32)
 
--- Int64s are written as a 4 bytes in big endian format
+-- Int64s are written as a 8 bytes in big endian format
 instance Binary Int64 where
     put i   = put (fromIntegral i :: Word64)
     get     = liftM fromIntegral (get :: Get Word64)



More information about the ghc-commits mailing list