diff --git a/mahotas/numpypp/dispatch.hpp b/mahotas/numpypp/dispatch.hpp index 3bd01b95..3f5d637f 100644 --- a/mahotas/numpypp/dispatch.hpp +++ b/mahotas/numpypp/dispatch.hpp @@ -6,13 +6,20 @@ typedef unsigned char uchar; typedef unsigned short ushort; #define HANDLE_INTEGER_TYPES() \ case NPY_BOOL: HANDLE(bool); break; \ + \ + case NPY_INT8: HANDLE(npy_int8); break; \ case NPY_UBYTE: HANDLE(unsigned char); break; \ case NPY_BYTE: HANDLE(char); break; \ + \ case NPY_SHORT: HANDLE(short); break; \ case NPY_USHORT: HANDLE(unsigned short); break; \ + \ case NPY_INT: HANDLE(int); break; \ case NPY_UINT: HANDLE(unsigned int); break; \ - case NPY_LONG: HANDLE(npy_long); 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;