pgsql: This patch fixes this warning.

Started by Bruce Momjianover 20 years ago2 messagescomitters
Jump to latest
#1Bruce Momjian
bruce@momjian.us

Log Message:
-----------
This patch fixes this warning.

gettimeofday.c:35: warning: integer constant is too large for "long"
type

Kris Jurka

Modified Files:
--------------
pgsql/src/port:
gettimeofday.c (r1.7 -> r1.8)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/gettimeofday.c.diff?r1=1.7&r2=1.8)

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Bruce Momjian (#1)
Re: pgsql: This patch fixes this warning.

momjian@postgresql.org (Bruce Momjian) writes:

Log Message:
-----------
This patch fixes this warning.

gettimeofday.c:35: warning: integer constant is too large for "long"
type

Wouldn't it be better to use the UINT64CONST macro? I realize this
file is Windows-only, but we do worry about more than one compiler
on that platform.

regards, tom lane