From ef63e8efa0e4105d3d0cb8da156ffbd3626c9ea9 Mon Sep 17 00:00:00 2001 From: Luis Pedro Coelho Date: Fri, 12 Jul 2024 10:51:40 -0400 Subject: [PATCH] BUG Handle NPY_(U)LONGLONG type This should fix Windows wheel building as it appears that in certain configurations, this type is used --- mahotas/numpypp/dispatch.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mahotas/numpypp/dispatch.hpp b/mahotas/numpypp/dispatch.hpp index 81cbc4e4..2e68375a 100644 --- a/mahotas/numpypp/dispatch.hpp +++ b/mahotas/numpypp/dispatch.hpp @@ -1,4 +1,4 @@ -/* Copyright 2010-2014 (C) +/* Copyright 2010-2024 (C) * Luis Pedro Coelho * License: MIT */ @@ -13,7 +13,8 @@ typedef unsigned short ushort; case NPY_INT: HANDLE(int); break; \ case NPY_UINT: HANDLE(unsigned int); break; \ case NPY_LONG: HANDLE(npy_long); break; \ - case NPY_ULONG: HANDLE(npy_ulong); break; + case NPY_LONGLONG: HANDLE(npy_longlong); break; \ + case NPY_ULONGLONG: HANDLE(npy_ulonglong); break; #if defined(NPY_FLOAT128) #define HANDLE_FLOAT128() case NPY_FLOAT128: HANDLE(npy_float128)