[issue37170] Wrong return value from PyLong_AsUnsignedLongLongMask on PyErr_BadInternalCall

STINNER Victor report at bugs.python.org
Thu Jun 6 08:22:33 EDT 2019


STINNER Victor <vstinner at redhat.com> added the comment:

> Victor, as a friendly reminder, (unsigned long)-1 is not necessarily the same number as (unsigned long long)-1. The documentation means the latter.

Aaaah, I didn't notice that the function returns unsigned *long long*, sorry :-)

Which platform is impacted? Windows 64-bit? Does it mean that we have zero unit test on this function? Or does it mean that (unsigned long)-1 is compiled correctly as (unsigned long long)-1 on Windows 64-bit? Is "long long" 8 bytes long and "long" 4 bytes long on Windows 64-bit?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37170>
_______________________________________


More information about the Python-bugs-list mailing list