type compatibility warnings -- building python on windows 64-bit x64

nichols.alan at gmail.com nichols.alan at gmail.com
Mon Sep 24 18:25:27 CEST 2007


I am attempting to build the SVN release of python on Visual Studio 8.

I get the warning messages such as the following:


..\..\Modules\cPickle.c(527) : warning C4244: '=' : conversion from
'Py_ssize_t' to 'int', possible loss of data
..\..\Modules\binascii.c(285) : warning C4244: '=' : conversion from
'Py_ssize_t' to 'unsigned char', possible loss of data
..\..\PC\_winreg.c(736) : warning C4267: '=' : conversion from
'size_t' to 'DWORD', possible loss of data
c:\python25_svn_64\objects\stringlib/fastsearch.h(57) : warning C4244:
'=' : conversion from 'Py_ssize_t' to 'long', possible loss of data

It's my understanding that the underlying type of the Py_ssize_t is 64-
bit while ints and longs are 32-bit in VS 2005 -- hence the basis of
the warnings.

Can you tell me if this is an issue of concern, or can I ignore the
warnings?

Thank you,

Alan Nichols




More information about the Python-list mailing list