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

core: fix bug with Win32

parent 97be0425
No related branches found
No related tags found
No related merge requests found
......@@ -275,7 +275,7 @@ namespace eigenpy
PyArrayObject* pyArray;
// Allocate Python memory
if( ( (((C == 1) xor (R == 1)) && !MatType::IsVectorAtCompileTime) || MatType::IsVectorAtCompileTime)
if( ( ((!(C == 1) != !(R == 1)) && !MatType::IsVectorAtCompileTime) || MatType::IsVectorAtCompileTime)
&& NumpyType::getType() == ARRAY_TYPE) // Handle array with a single dimension
{
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