Skip to content

Commit

Permalink
Wild guess for INDd fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcubillos committed Apr 9, 2024
1 parent 18fbc25 commit cc184bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src_c/include/ind.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
/* Definitions for indexing Numpy arrays: */

/* 1D double ndarray: */
#define INDd(a,i) *((double *)(PyArray_DATA(a) + i * PyArray_STRIDE(a, 0)))
#define INDd(a,i) (char *)((double *)(PyArray_DATA(a) + i * PyArray_STRIDE(a, 0)))
/* 1D integer ndarray: */
#define INDi(a,i) *((int *)(PyArray_DATA(a) + i * PyArray_STRIDE(a, 0)))
#define INDi(a,i) (char *)((int *)(PyArray_DATA(a) + i * PyArray_STRIDE(a, 0)))

0 comments on commit cc184bf

Please sign in to comment.