Skip to content

Commit

Permalink
BUG Handle NPY_(U)LONGLONG type
Browse files Browse the repository at this point in the history
This should fix Windows wheel building as it appears that in certain configurations, this type is used
  • Loading branch information
luispedro committed Jul 12, 2024
1 parent 25c3e1c commit ef63e8e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mahotas/numpypp/dispatch.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2010-2014 (C)
/* Copyright 2010-2024 (C)
* Luis Pedro Coelho <[email protected]>
* License: MIT
*/
Expand All @@ -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)
Expand Down

0 comments on commit ef63e8e

Please sign in to comment.