[issue35037] PYLONG_BITS_IN_DIGIT differs between MinGW and MSVC

Stefan Behnel report at bugs.python.org
Sun Oct 21 04:29:06 EDT 2018


Stefan Behnel <stefan_ml at behnel.de> added the comment:

Some more information. CPython uses this code snippet to decide on the PyLong digit size:

#ifndef PYLONG_BITS_IN_DIGIT
#if SIZEOF_VOID_P >= 8
#define PYLONG_BITS_IN_DIGIT 30
#else
#define PYLONG_BITS_IN_DIGIT 15
#endif
#endif

In MinGW, "SIZEOF_VOID_P" is 4, whereas "sizeof(void*)" resolves to 8.

----------

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


More information about the Python-bugs-list mailing list