Use Py_ssize_t instead of long

This commit is contained in:
Christoph Gohlke 2013-02-13 18:42:46 -08:00
parent 803022d93f
commit c334626b8b

View File

@ -293,9 +293,9 @@ font_render(FontObject* self, PyObject* args)
/* render string into given buffer (the buffer *must* have /* render string into given buffer (the buffer *must* have
the right size, or this will crash) */ the right size, or this will crash) */
PyObject* string; PyObject* string;
long id; Py_ssize_t id;
int mask = 0; 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; return NULL;
#if PY_VERSION_HEX >= 0x03000000 #if PY_VERSION_HEX >= 0x03000000