Fix a wrong printf format.

This commit is contained in:
Thomas Heller 2006-06-10 21:07:19 +00:00
parent 82578c895c
commit 5218ab263a
1 changed files with 1 additions and 6 deletions

View File

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