Use Py_ssize_t instead of long

This commit is contained in:
Christoph Gohlke 2013-02-13 18:38:45 -08:00
parent a0f1f6692c
commit 2feb481ca2

View File

@ -35,9 +35,9 @@ _tkinit(PyObject* self, PyObject* args)
{
Tcl_Interp* interp;
long arg;
Py_ssize_t arg;
int is_interp;
if (!PyArg_ParseTuple(args, "li", &arg, &is_interp))
if (!PyArg_ParseTuple(args, "ni", &arg, &is_interp))
return NULL;
if (is_interp)