Skip to content
Snippets Groups Projects
Commit 2451ff46 authored by Justin Carpentier's avatar Justin Carpentier Committed by GitHub
Browse files

Merge pull request #155 from jcarpent/devel

core: fix bug with Win32
parents 97be0425 4d5311a6
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