From 50912fbb9fd2893f5fe602556757fc9d2eaa5005 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Sol=C3=A0?= <jsola@iri.upc.edu>
Date: Wed, 1 Apr 2020 02:48:39 +0200
Subject: [PATCH] Fix parenthesis bug

---
 src/processor/processor_motion.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/processor/processor_motion.cpp b/src/processor/processor_motion.cpp
index 1818c2fbb..e1746423e 100644
--- a/src/processor/processor_motion.cpp
+++ b/src/processor/processor_motion.cpp
@@ -625,7 +625,7 @@ void ProcessorMotion::setProblem(ProblemPtr _problem)
         return;
 
     std::string str = "Processor works with " + std::to_string(dim_) + "D but problem is " + std::to_string(_problem->getDim()) + "D";
-    assert(dim_ == 0 or dim_ == _problem->getDim() && str.c_str());
+    assert(((dim_ == 0) or (dim_ == _problem->getDim())) && str.c_str());
 
     if (_problem == this->getProblem())
         return;
-- 
GitLab