Mentions légales du service

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

[lib] C api last fix in init of frequently used variable

parent d2fc94e0
No related branches found
No related tags found
No related merge requests found
......@@ -170,6 +170,7 @@ static PyObject* shift_clause(PyObject *self, PyObject *args, PyObject *kwds)
PyObject *lit;
PyObject *shifted_lit;
Py_ssize_t i = 0;
long lit_val = 0;
while ((lit = PyIter_Next(numeric_clause_iterator)) != NULL) {
#ifndef NDEBUG
/* Debugging code */
......@@ -180,7 +181,7 @@ static PyObject* shift_clause(PyObject *self, PyObject *args, PyObject *kwds)
#endif
// Mieux vaut rester avec des PyObject pour faire les additions ou pas ???
long lit_val = PyLong_AsLong(lit);
lit_val = PyLong_AsLong(lit);
if (lit_val > 0) {
#ifdef IS_PY3K
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment