Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-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

pgsql-hackers by date

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

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group