In C extension .pyd, sizeof INT64 = 4?

Allen Allen.Chenal at gmail.com
Tue Jun 12 09:01:47 EDT 2007


On 6 12 ,   8 08 , "Gabriel Genellina" <gagsl-... at yahoo.com.ar> wrote:
> En Tue, 12 Jun 2007 08:39:43 -0300, Allen <Allen.Che... at gmail.com>
> escribió:
>
> > PyObject* method(PyObject* self, PyObject *args)
> > {
> >    INT64 nValue; /* LINE_HERE */
> >    INT32 nRet;
> >    nRet = DoSomeCOperations(nValue);
> >    return PyBuildValue("i", nRet);
> > }
>
> > If I changed INT64 nValue to be static INT64 nValue at LINE_HERE, it
> > is ok.
> > Why?
>
> I don't know, but I don't see either where Python is involved... you don't
> use any argument and the returned Python object is not an INT64...
>
> --
> Gabriel Genellina

The problem is obviously compiler involved.
But I don't know why the sizeof INT64 is changed to be 4.




More information about the Python-list mailing list