Re: [HACKERS] pgsql: Fix compiler warnings on 64-bit - Mailing list pgsql-committers

From Teodor Sigaev
Subject Re: [HACKERS] pgsql: Fix compiler warnings on 64-bit
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: pgsql: Fix compiler warnings on 64-bit boxes:  (Tom Lane <[email protected]>)
Responses Re: [HACKERS] pgsql: Fix compiler warnings on 64-bit boxes:
List pgsql-committers
>     ereport(...errmsg("trouble at offset " UINT64_FORMAT, bigintvar));

One more solution: add format code %D to expand_fmt_string() which should be
expanded to usual %d on 32-bit architecture and to UINT64_FORMAT on 64-bit.

--
Teodor Sigaev                                   E-mail: [email protected]
                                                    WWW: http://www.sigaev.ru/

pgsql-committers by date:

Previous
From: [email protected] (User H-saito)
Date:
Subject: npgsql - Npgsql: The project file for VisualStudio2003 is added.
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] pgsql: Fix compiler warnings on 64-bit boxes: