Thread: pgsql: This patch fixes this warning.

pgsql: This patch fixes this warning.

From
momjian@postgresql.org (Bruce Momjian)
Date:
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)

Re: pgsql: This patch fixes this warning.

From
Tom Lane
Date:
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