Skip to content

Commit

Permalink
Use long long int for npy_intp in reshape_funcs.cu
Browse files Browse the repository at this point in the history
This is 64 bits on Linux and Windows, which corrects an issue with the
prototypes not matching on Windows.
  • Loading branch information
gmarkall committed Nov 29, 2024
1 parent bd3d0a6 commit 4c90fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numba_cuda/numba/cuda/reshape_funcs.cu
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
#define NPY_MAXDIMS 32

typedef long int npy_intp;
typedef long long int npy_intp;

extern "C" __device__ int
nocopy_empty_reshape(npy_intp nd, const npy_intp *dims, const npy_intp *strides,
Expand Down

0 comments on commit 4c90fef

Please sign in to comment.