Skip to content
Snippets Groups Projects
Verified Commit 47268922 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: fix warning

parent 88958558
No related branches found
No related tags found
No related merge requests found
...@@ -275,7 +275,7 @@ namespace eigenpy ...@@ -275,7 +275,7 @@ namespace eigenpy
PyArrayObject* pyArray; PyArrayObject* pyArray;
// Allocate Python memory // Allocate Python memory
if( ( ((C == 1 xor R == 1) && !MatType::IsVectorAtCompileTime) || MatType::IsVectorAtCompileTime) if( ( (((C == 1) xor (R == 1)) && !MatType::IsVectorAtCompileTime) || MatType::IsVectorAtCompileTime)
&& NumpyType::getType() == ARRAY_TYPE) // Handle array with a single dimension && NumpyType::getType() == ARRAY_TYPE) // Handle array with a single dimension
{ {
npy_intp shape[1] = { C == 1 ? R : C }; npy_intp shape[1] = { C == 1 ? R : C };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment