From e75b8f23976bef049fec07356fc3ac70ddaed07e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Sol=C3=A0?= <jsola@iri.upc.edu>
Date: Thu, 23 Jun 2022 02:33:48 +0200
Subject: [PATCH] Fix parenthesis

---
 src/state_block/state_block_derived.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/state_block/state_block_derived.cpp b/src/state_block/state_block_derived.cpp
index d9548374c..5f43e96c7 100644
--- a/src/state_block/state_block_derived.cpp
+++ b/src/state_block/state_block_derived.cpp
@@ -30,7 +30,7 @@ StateBlockPtr StateVector3d::create(const Eigen::VectorXd& _state, bool _fixed)
 
 StateBlockPtr create_point(const Eigen::VectorXd& _state, bool _fixed)
 {
-    assert(_state.size() == 2 or _state.size() == 3 && "Provided _state must be size 2 or 3!");
+    assert((_state.size() == 2 or _state.size() == 3) && "Provided _state must be size 2 or 3!");
     if (_state.size() == 2)
         return std::make_shared<StatePoint2d>(_state, _fixed);
     else
@@ -39,7 +39,7 @@ StateBlockPtr create_point(const Eigen::VectorXd& _state, bool _fixed)
 
 StateBlockPtr create_vector(const Eigen::VectorXd& _state, bool _fixed)
 {
-    assert(_state.size() == 2 or _state.size() == 3 && "Provided _state must be size 2 or 3!");
+    assert((_state.size() == 2 or _state.size() == 3) && "Provided _state must be size 2 or 3!");
     if (_state.size() == 2)
         return std::make_shared<StateVector2d>(_state, _fixed);
     else
-- 
GitLab