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

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org, pgsql-committers(at)postgresql(dot)org
Subject: Re: [HACKERS] pgsql: Fix compiler warnings on 64-bit
Date: 2006-09-06 16:41:24
Message-ID: 44FEFA34.7060305@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

> 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: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2006-09-06 16:55:07 Re: [HACKERS] pgsql: Fix compiler warnings on 64-bit boxes:
Previous Message User H-saito 2006-09-06 16:07:40 npgsql - Npgsql: The project file for VisualStudio2003 is added.

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-09-06 16:43:29 Re: [HACKERS] Open items for 8.2
Previous Message John Jawed 2006-09-06 16:39:24 Re: site down?