diff options
author | Olly Betts <olly@survex.com> | 2019-06-03 10:13:58 +1200 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2019-06-03 10:13:58 +1200 |
commit | c864546b4ab39838d59502a791854dab3817e38b (patch) | |
tree | 48c43d224163711d395287dddd6231d644627bba /Lib/python/pyrun.swg | |
parent | 87695dacb19edf603219580d8b44444be7c2034e (diff) | |
download | swig-c864546b4ab39838d59502a791854dab3817e38b.tar.gz |
[Python] Fix implicit_conv tuple handling regression
Introduced in SWIG 4.0.0. Fixes #1553, reported by Alexandre
Duret-Lutz.
Diffstat (limited to 'Lib/python/pyrun.swg')
-rw-r--r-- | Lib/python/pyrun.swg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/python/pyrun.swg b/Lib/python/pyrun.swg index ad1b81963..445a1e324 100644 --- a/Lib/python/pyrun.swg +++ b/Lib/python/pyrun.swg @@ -184,7 +184,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi } /* A functor is a function object with one single object argument */ -#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, (char *)"O", obj); +#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); /* Helper for static pointer initialization for both C and C++ code, for example |