diff --git a/library/PostgreSQLBinary/Decoder.hs b/library/PostgreSQLBinary/Decoder.hs
--- a/library/PostgreSQLBinary/Decoder.hs
+++ b/library/PostgreSQLBinary/Decoder.hs
@@ -159,8 +159,8 @@
       u <- int ub
       d <- int db
       m <- int mb
-      return $ picosecondsToDiffTime $ fromIntegral $
-        (10 ^ 6 * (u + 10 ^ 6 * 60 * 60 * 24 * (d + 31 * m)) :: Int)
+      return $ picosecondsToDiffTime $
+        10 ^ 6 * fromIntegral (u + 10 ^ 6 * 60 * 60 * 24 * (d + 31 * m) :: Int64)
 
 
 
diff --git a/postgresql-binary.cabal b/postgresql-binary.cabal
--- a/postgresql-binary.cabal
+++ b/postgresql-binary.cabal
@@ -1,7 +1,7 @@
 name:
   postgresql-binary
 version:
-  0.2.0
+  0.2.1
 synopsis:
   Encoders and decoders for the PostgreSQL's binary format
 description:
