]> granicus.if.org Git - postgresql/commitdiff
Suppress compile warnings on machines where the INT64CONST() decoration
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 31 May 2004 18:53:18 +0000 (18:53 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 31 May 2004 18:53:18 +0000 (18:53 +0000)
is actually needed.  Per Oliver Elphick.

src/backend/utils/adt/date.c
src/backend/utils/adt/datetime.c
src/interfaces/ecpg/pgtypeslib/dt_common.c

index ab6e41d2e40461705c6f90b5bf8a7481044a0d54..91ef127a94ad153100165f3c376d2be6d0a8f07f 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/utils/adt/date.c,v 1.97 2004/05/21 05:08:01 tgl Exp $
+ *       $PostgreSQL: pgsql/src/backend/utils/adt/date.c,v 1.98 2004/05/31 18:53:17 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -1461,7 +1461,7 @@ interval_time(PG_FUNCTION_ARGS)
        }
        else if (result < 0)
        {
-               days = (-result + INT64CONST(86400000000 - 1)) / INT64CONST(86400000000);
+               days = (-result + INT64CONST(86400000000) - 1) / INT64CONST(86400000000);
                result += days * INT64CONST(86400000000);
        }
 #else
index 8402d8cccb15f8fb5408bd5ff1d10f7afc22f699..4284e4c5e3255a2927bf5a7156700b201e5d5ee3 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/utils/adt/datetime.c,v 1.128 2004/05/21 05:08:01 tgl Exp $
+ *       $PostgreSQL: pgsql/src/backend/utils/adt/datetime.c,v 1.129 2004/05/31 18:53:17 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -1209,7 +1209,7 @@ DecodeDateTime(char **field, int *ftype, int nf,
 
                                                                tmask |= DTK_TIME_M;
 #ifdef HAVE_INT64_TIMESTAMP
-                                                               dt2time((time * 86400000000),
+                                                               dt2time((time * INT64CONST(86400000000)),
                                                                                &tm->tm_hour, &tm->tm_min, &tm->tm_sec, fsec);
 #else
                                                                dt2time((time * 86400),
@@ -1960,7 +1960,7 @@ DecodeTimeOnly(char **field, int *ftype, int nf,
 
                                                                tmask |= DTK_TIME_M;
 #ifdef HAVE_INT64_TIMESTAMP
-                                                               dt2time((time * 86400000000),
+                                                               dt2time((time * INT64CONST(86400000000)),
                                                                                &tm->tm_hour, &tm->tm_min, &tm->tm_sec, fsec);
 #else
                                                                dt2time((time * 86400),
index eaa0538f5539c32d2a5f314d50b3b463be733f63..f906b449b08d95c2daacf3f8dcd5333226a0404f 100644 (file)
@@ -2255,7 +2255,7 @@ DecodeDateTime(char **field, int *ftype, int nf,
 
                                                                tmask |= DTK_TIME_M;
 #ifdef HAVE_INT64_TIMESTAMP
-                                                               dt2time((time * 86400000000), &tm->tm_hour, &tm->tm_min, &tm->tm_sec, fsec);
+                                                               dt2time((time * INT64CONST(86400000000)), &tm->tm_hour, &tm->tm_min, &tm->tm_sec, fsec);
 #else
                                                                dt2time((time * 86400), &tm->tm_hour, &tm->tm_min, &tm->tm_sec, fsec);
 #endif