Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 68d57a39 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[lib] C api: do not use pybuildvalue anymore

parent 5fe60d24
No related branches found
No related tags found
No related merge requests found
......@@ -754,7 +754,11 @@ static PyObject* unflatten(PyObject *self, PyObject *args, PyObject *kwds)
Py_DECREF(item);
// Equivalent of get_unshift_code but in full C
unshift_code = Py_BuildValue("i", raw_get_unshift_code(&var_num, &shift_step)); // new ref
#ifdef IS_PY3K
unshift_code = PyLong_FromLong(raw_get_unshift_code(&var_num, &shift_step)); // new ref
#else
unshift_code = PyInt_FromLong(raw_get_unshift_code(&var_num, &shift_step)); // new ref
#endif
if(unshift_code == NULL) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment