Commit 7f143daf authored by Thomas Heller's avatar Thomas Heller

Fix a wrong printf format.

parent b5f4bf8c
...@@ -1827,12 +1827,7 @@ unique_key(CDataObject *target, Py_ssize_t index) ...@@ -1827,12 +1827,7 @@ unique_key(CDataObject *target, Py_ssize_t index)
#if (PY_VERSION_HEX < 0x02050000) #if (PY_VERSION_HEX < 0x02050000)
cp += sprintf(cp, "%x", index); cp += sprintf(cp, "%x", index);
#else #else
#ifdef MS_WIN32 cp += sprintf(cp, "%x", Py_SAFE_DOWNCAST(index, Py_ssize_t, int));
/* MSVC does not understand the 'z' size specifier */
cp += sprintf(cp, "%Ix", index);
#else
cp += sprintf(cp, "%zx", index);
#endif
#endif #endif
while (target->b_base) { while (target->b_base) {
bytes_left = sizeof(string) - (cp - string) - 1; bytes_left = sizeof(string) - (cp - string) - 1;
......
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