[issue9566] Compilation warnings under x64 Windows

STINNER Victor report at bugs.python.org
Tue Jan 4 23:05:28 CET 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

> Python\pystrtod.c(902) : 'function' : conversion from 'Py_ssize_t' to 'int', possible loss of data
> Python\pystrtod.c(1023) : '=' : conversion from 'Py_ssize_t' to 'int', possible loss of data

I asked dmalcolm on IRC if int or Py_ssize_t should be used:

"this is the number of digits to use in the floating point representation, right? it strikes me that if you're overflowing an int, you're asking for a very very very long string" (yes, INT_MAX is usually 2^31)

"... looking at usage of precision seems to ultimately land in Python/dtoa.c, which uses int..."

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9566>
_______________________________________


More information about the Python-bugs-list mailing list