THRIFT-385. hs: 64-bit integer and double types incorrectly serialized on 32-bit platforms
Use 64-bit types where appropriate.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@757619 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/hs/src/Thrift.hs b/lib/hs/src/Thrift.hs
index bb9f0bc..74810a3 100644
--- a/lib/hs/src/Thrift.hs
+++ b/lib/hs/src/Thrift.hs
@@ -137,7 +137,7 @@
writeByte :: TTransport t => a t -> Int -> IO ()
writeI16 :: TTransport t => a t -> Int -> IO ()
writeI32 :: TTransport t => a t -> Int -> IO ()
- writeI64 :: TTransport t => a t -> Int -> IO ()
+ writeI64 :: TTransport t => a t -> Int64 -> IO ()
writeDouble :: TTransport t => a t -> Double -> IO ()
writeString :: TTransport t => a t -> [Char] -> IO ()
writeBinary :: TTransport t => a t -> [Char] -> IO ()
@@ -157,7 +157,7 @@
readByte :: TTransport t => a t -> IO Int
readI16 :: TTransport t => a t -> IO Int
readI32 :: TTransport t => a t -> IO Int
- readI64 :: TTransport t => a t -> IO Int
+ readI64 :: TTransport t => a t -> IO Int64
readDouble :: TTransport t => a t -> IO Double
readString :: TTransport t => a t -> IO [Char]
readBinary :: TTransport t => a t -> IO [Char]