Clarify order of assignment and test

This commit is contained in:
Rémi Duraffort 2013-07-12 10:13:45 +02:00
parent da97e00592
commit 075495cb80

View File

@ -261,7 +261,7 @@ Config_foreach_callback_wrapper(const git_config_entry *entry, void *c_payload)
if (!(py_result = PyObject_CallObject(py_callback, args)))
return -1;
if ((c_result = PyLong_AsLong(py_result) == -1))
if ((c_result = PyLong_AsLong(py_result)) == -1)
return -1;
Py_CLEAR(args);