From 4d5311a6962dc7c20e4c0615f0ddd7a5534054a0 Mon Sep 17 00:00:00 2001 From: Justin Carpentier <justin.carpentier@inria.fr> Date: Thu, 6 Feb 2020 14:35:04 +0100 Subject: [PATCH] core: fix bug with Win32 --- include/eigenpy/details.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/eigenpy/details.hpp b/include/eigenpy/details.hpp index 58a8a6b2..2fa0de5e 100644 --- a/include/eigenpy/details.hpp +++ b/include/eigenpy/details.hpp @@ -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 }; -- GitLab