From 27be5aedf20d6d5a4083e9ae2fdc4ff54837f7d9 Mon Sep 17 00:00:00 2001 From: Justin Carpentier Date: Fri, 26 Jan 2024 14:18:22 +0100 Subject: [PATCH] core: fix special case on windows --- include/eigenpy/numpy-type.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/eigenpy/numpy-type.hpp b/include/eigenpy/numpy-type.hpp index eac7e7abf..a5d12aef2 100644 --- a/include/eigenpy/numpy-type.hpp +++ b/include/eigenpy/numpy-type.hpp @@ -26,6 +26,10 @@ bool np_type_is_convertible_into_scalar(const int np_type) { switch (np_type) { case NPY_INT: return FromTypeToType::value; +#ifdef WIN32 + case NPY_INT64: + return FromTypeToType<__int64, Scalar>::value; +#endif case NPY_LONG: return FromTypeToType::value; case NPY_FLOAT: