Re: BUG #5464: ecpg on 64bit system converts "long long" to "long" - Mailing list pgsql-bugs

From Michael Enke
Subject Re: BUG #5464: ecpg on 64bit system converts "long long" to "long"
Date
Msg-id 4BF4676E.4080707@wincor-nixdorf.com
Whole thread Raw
In response to Re: BUG #5464: ecpg on 64bit system converts "long long" to "long"  (Michael Meskes <meskes@postgresql.org>)
Responses Re: BUG #5464: ecpg on 64bit system converts "long long" to "long"
List pgsql-bugs
Michael Meskes schrieb:
> On Wed, May 19, 2010 at 10:34:42AM -0700, John R Pierce wrote:
>> I'm pretty sure it varies with the 64 bit system.  I believe on IBM
>> Power, LONG LONG *is* 64 bit.
>=20
> I'm currently without real access to a 64bit system until I come back hom=
e. If
> it is 64bit on *all* 64bit systems the problem is slightly different.=20
>=20
> Michael=20

The size of long *and* long long is 64 bit on x86_64 system.
But the compiler throws warnings for %lld with long int type.
It should not be required to change the code to not run into such warnings.
Yes, I know the PRI... macros from inttypes.h ...

Michael

WINCOR NIXDORF International GmbH
Sitz der Gesellschaft: Paderborn
Registergericht Paderborn HRB 3507
Gesch=C3=A4ftsf=C3=BChrer: Eckard Heidloff (Vorsitzender), Stefan Auerbach,=
 Dr. J=C3=BCrgen Wunram
Vorsitzender des Aufsichtsrats: Karl-Heinz Stiller
Steuernummer: 339/5884/0020 - Ust-ID Nr.: DE812927716 - WEEE-Reg.-Nr. DE444=
77193

Diese E-Mail enth=C3=A4lt vertrauliche Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt=C3=BCmlich=
 erhalten haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist ni=
cht gestattet.

This e-mail may contain confidential information.
If you are not the intended recipient (or have received this e-mail in erro=
r)
please notify the sender immediately and destroy this e-mail.
Any unauthorised copying, disclosure or distribution of the material in thi=
s e-mail is strictly forbidden.

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #5466: Asia/Novosibirsk timezone problem
Next
From: Diffor
Date:
Subject: Re: BUG #5466: Asia/Novosibirsk timezone problem