Commit b46f58d6 authored by Stefan Behnel's avatar Stefan Behnel

use '%lld' format for Py_ssize_t on Win64+MSVC if supported

parent ab9ca875
......@@ -245,7 +245,13 @@
#endif
#if defined(_WIN64) && defined(_MSC_VER)
// CPython misdefines the format as "I", but the
// "ll" prefix is only supported in Py2.7 and later
#if PY_VERSION_HEX >= 0x02070000
#define CYTHON_FORMAT_SSIZE_T "ll"
#else
#define CYTHON_FORMAT_SSIZE_T "z"
#endif
#else
#define CYTHON_FORMAT_SSIZE_T PY_FORMAT_SIZE_T
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment