summaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/date.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-06-13 17:17:49 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-06-13 17:17:49 +0000
commitda736b79e78af045cfe0d30fa564b876545a5f27 (patch)
tree9a44ce9b9231e3ca95f5e8a31498bb5eb2ec0eba /src/backend/utils/adt/date.c
parent2e11ef8be8a33b28f33ae1b56421c2bf0683daa7 (diff)
Suppress compile warnings on machines where the INT64CONST() decoration
is actually needed. Backport of Oliver Elphick's recent patch.
Diffstat (limited to 'src/backend/utils/adt/date.c')
-rw-r--r--src/backend/utils/adt/date.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/adt/date.c b/src/backend/utils/adt/date.c
index a0d00e73dc2..f1ef9412c86 100644
--- a/src/backend/utils/adt/date.c
+++ b/src/backend/utils/adt/date.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/date.c,v 1.93 2003/09/26 15:27:36 petere Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/date.c,v 1.93.2.1 2004/06/13 17:17:48 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1111,7 +1111,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