In C extension .pyd, sizeof INT64 = 4?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Jun 12 16:06:42 EDT 2007


En Tue, 12 Jun 2007 10:01:47 -0300, Allen <Allen.Chenal at gmail.com>  
escribió:

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

This prints 8, compiled with Visual C++ 2005 Express, Python 2.5.1, inside  
a Python extension with all the normal definitions and #include's

void test(void)
{
	INT64 i=1;
	printf("%d\n", sizeof(i));
}

-- 
Gabriel Genellina




More information about the Python-list mailing list