mirror of
https://github.com/postgres/postgres.git
synced 2025-05-17 06:41:24 +03:00
Suppress compile warnings on machines where the INT64CONST() decoration
is actually needed. Backport of Oliver Elphick's recent patch.
This commit is contained in:
parent
2e11ef8be8
commit
da736b79e7
@ -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
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.118.2.2 2003/12/17 21:45:51 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.118.2.3 2004/06/13 17:17:48 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1208,7 +1208,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),
|
||||
@ -1948,7 +1948,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),
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user