From c334626b8bc71147e9ede186b6a1379f9577f7a0 Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Wed, 13 Feb 2013 18:42:46 -0800 Subject: [PATCH] Use Py_ssize_t instead of long --- _imagingft.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_imagingft.c b/_imagingft.c index f54e38553..7028293ec 100644 --- a/_imagingft.c +++ b/_imagingft.c @@ -293,9 +293,9 @@ font_render(FontObject* self, PyObject* args) /* render string into given buffer (the buffer *must* have the right size, or this will crash) */ PyObject* string; - long id; + Py_ssize_t id; int mask = 0; - if (!PyArg_ParseTuple(args, "Ol|i:render", &string, &id, &mask)) + if (!PyArg_ParseTuple(args, "On|i:render", &string, &id, &mask)) return NULL; #if PY_VERSION_HEX >= 0x03000000