mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Use Py_ssize_t instead of long
This commit is contained in:
parent
803022d93f
commit
c334626b8b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user