Skip to content

Commit 4d5311a

Browse files
committed
core: fix bug with Win32
1 parent 97be042 commit 4d5311a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/eigenpy/details.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ namespace eigenpy
275275

276276
PyArrayObject* pyArray;
277277
// Allocate Python memory
278-
if( ( (((C == 1) xor (R == 1)) && !MatType::IsVectorAtCompileTime) || MatType::IsVectorAtCompileTime)
278+
if( ( ((!(C == 1) != !(R == 1)) && !MatType::IsVectorAtCompileTime) || MatType::IsVectorAtCompileTime)
279279
&& NumpyType::getType() == ARRAY_TYPE) // Handle array with a single dimension
280280
{
281281
npy_intp shape[1] = { C == 1 ? R : C };

0 commit comments

Comments
 (0)