Skip to content

Commit

Permalink
More const
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd committed Feb 13, 2024
1 parent 2a5499d commit 6f24b52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numpy/_core/include/numpy/ndarraytypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -1478,13 +1478,13 @@ PyArray_NDIM(const PyArrayObject *arr)
}

static inline void *
PyArray_DATA(PyArrayObject *arr)
PyArray_DATA(const PyArrayObject *arr)
{
return ((PyArrayObject_fields *)arr)->data;
}

static inline char *
PyArray_BYTES(PyArrayObject *arr)
PyArray_BYTES(const PyArrayObject *arr)
{
return ((PyArrayObject_fields *)arr)->data;
}
Expand Down

0 comments on commit 6f24b52

Please sign in to comment.