From 46f043e06cac8852fa44eb359210022c639f2ff6 Mon Sep 17 00:00:00 2001
From: Jonathan Lambrechts <jonathan.lambrechts@uclouvain.be>
Date: Tue, 11 Oct 2016 08:37:30 +0000
Subject: [PATCH] if(not ok) => if (ok == 0)

---
 Numeric/simpleFunctionPython.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Numeric/simpleFunctionPython.h b/Numeric/simpleFunctionPython.h
index a2ecbaddf3..b88b07ee1a 100644
--- a/Numeric/simpleFunctionPython.h
+++ b/Numeric/simpleFunctionPython.h
@@ -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);
     }
-- 
GitLab