Updated for SML/NJ 110.46
authorAdam Chlipala <adamc@hcoop.net>
Thu, 12 Aug 2004 04:30:30 +0000 (04:30 +0000)
committerAdam Chlipala <adamc@hcoop.net>
Thu, 12 Aug 2004 04:30:30 +0000 (04:30 +0000)
.cvsignore
libpq/.cvsignore
libpq/FFI/.cvsignore
libpq/pg.sml

index be80172..854c999 100644 (file)
@@ -1 +1,2 @@
+.cm
 CM
\ No newline at end of file
index be80172..854c999 100644 (file)
@@ -1 +1,2 @@
+.cm
 CM
\ No newline at end of file
index be80172..854c999 100644 (file)
@@ -1 +1,2 @@
+.cm
 CM
\ No newline at end of file
index d240dad..63d2720 100644 (file)
@@ -204,7 +204,7 @@ struct
     fun offsetStr NONE = "+00"
       | offsetStr (SOME n) =
        let
-           val n = Int32.toInt (Time.toSeconds n) div 3600
+           val n = LargeInt.toInt (Time.toSeconds n) div 3600
        in
            if n < 0 then
                "-" ^ pad (~n, 2)
@@ -230,7 +230,7 @@ struct
                [year, mon, day, hour, minute, second, _, offset] =>
                Date.toTime (Date.date {day = intFromSql day, hour = intFromSql hour, minute = intFromSql minute,
                                        month = toMonth (intFromSql mon),
-                                       offset = SOME (Time.fromSeconds (Int32.fromInt (intFromSql offset * 3600))),
+                                       offset = SOME (Time.fromSeconds (LargeInt.fromInt (intFromSql offset * 3600))),
                                        second = intFromSql second div 1000, year = intFromSql year})
              | [year, mon, day, hour, minute, second, _] =>
                Date.toTime (Date.date {day = intFromSql day, hour = intFromSql hour, minute = intFromSql minute,