Re: BUG #5464: ecpg on 64bit system converts "long long" to "long"

From: John R Pierce <pierce(at)hogranch(dot)com>
To: Michael Meskes <meskes(at)postgresql(dot)org>
Cc: Michael Enke <michael(dot)enke(at)wincor-nixdorf(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5464: ecpg on 64bit system converts "long long" to "long"
Date: 2010-05-19 17:34:42
Message-ID: 4BF42132.6000803@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Michael Meskes wrote:
> On Wed, May 19, 2010 at 08:53:12AM +0000, Michael Enke wrote:
>
>> If you run it through ecpg, in the resulting c file
>> the variable test has type long on 64 bit system.
>> On 32 bit system it is long long.
>>
>
> Apparently when this code was written "long long" was 64bit, but it doesn't
> seem to be that way on 64bit systems nowadays. I will check to see if there is
> an easy fix. If it is fairly interruptive the fix won't make it into 9.0
> though.
>

I'm pretty sure it varies with the 64 bit system. I believe on IBM
Power, LONG LONG *is* 64 bit.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Dmitry Funk 2010-05-19 17:44:35 BUG #5466: Asia/Novosibirsk timezone problem
Previous Message Michael Meskes 2010-05-19 17:25:47 Re: BUG #5464: ecpg on 64bit system converts "long long" to "long"