Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f9c8dda + baf5699 commit 42055bdCopy full SHA for 42055bd
src/_tkagg.cpp
@@ -219,7 +219,7 @@ _pyobj_addr(PyObject* self, PyObject* args)
219
{
220
return NULL;
221
}
222
- return Py_BuildValue("l", (long) pyobj);
+ return Py_BuildValue("n", (Py_ssize_t) pyobj);
223
224
225
static PyObject*
@@ -228,9 +228,9 @@ _tkinit(PyObject* self, PyObject* args)
228
Tcl_Interp* interp;
229
TkappObject* app;
230
231
- long arg;
+ Py_ssize_t arg;
232
int is_interp;
233
- if (!PyArg_ParseTuple(args, "li", &arg, &is_interp))
+ if (!PyArg_ParseTuple(args, "ni", &arg, &is_interp))
234
235
236
0 commit comments