Commit 23c68023 authored by Robert Bradshaw's avatar Robert Bradshaw Committed by GitHub

Merge pull request #2527 from orivej/fix-py_import-null-va_arg

Fix calling va_arg function with a NULL argument from generated C++ code
parents 83bf24e7 ff8a6039
......@@ -65,7 +65,7 @@ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
if (!py_level)
goto bad;
module = PyObject_CallFunctionObjArgs(py_import,
name, global_dict, empty_dict, list, py_level, NULL);
name, global_dict, empty_dict, list, py_level, (PyObject *)NULL);
Py_DECREF(py_level);
#else
module = PyImport_ImportModuleLevelObject(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment