]> granicus.if.org Git - python/commitdiff
Revert the use of PY_FORMAT_SIZE_T in PyErr_Format.
authorThomas Heller <theller@ctypes.org>
Fri, 30 Jun 2006 17:44:54 +0000 (17:44 +0000)
committerThomas Heller <theller@ctypes.org>
Fri, 30 Jun 2006 17:44:54 +0000 (17:44 +0000)
Modules/_ctypes/callproc.c

index ba0e0fcb51e9a020254d3730cbf571fea0a892d6..e883ed8c21d2fb22eac9baa4d9554f80471b3e16 100644 (file)
@@ -1490,7 +1490,11 @@ resize(PyObject *self, PyObject *args)
        }
        if (size < dict->size) {
                PyErr_Format(PyExc_ValueError,
-                            "minimum size is %" PY_FORMAT_SIZE_T "d",
+#if PY_VERSION_HEX < 0x02050000
+                            "minimum size is %d",
+#else
+                            "minimum size is %zd",
+#endif
                             dict->size);
                return NULL;
        }