Skip to content
Snippets Groups Projects
Commit 46f043e0 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

if(not ok) => if (ok == 0)

parent 0fea79fa
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ class simpleFunctionPython : public simpleFunction<double> {
double r = 0;
if (result) {
int ok = PyArg_Parse(result, "d", &r);
if (not ok)
if (ok == 0)
Msg::Error("The python function did not return a double.");
Py_DECREF(result);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment