From 2feb481ca210cc00468bc15f205c8cd8007b0bc6 Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Wed, 13 Feb 2013 18:38:45 -0800 Subject: [PATCH] Use Py_ssize_t instead of long --- _imagingtk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_imagingtk.c b/_imagingtk.c index b29cfdca8..cb6f21009 100644 --- a/_imagingtk.c +++ b/_imagingtk.c @@ -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)