Skip to content

Commit

Permalink
Update npy_2_compat as in numpy source
Browse files Browse the repository at this point in the history
  • Loading branch information
moble committed Aug 17, 2024
1 parent 8f8601b commit 8286759
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/npy_2_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
#if NPY_ABI_VERSION < 0x02000000
/*
* Define 2.0 feature version as it is needed below to decide whether we
* compile for both 1.x and 2.x (defining it gaurantees 1.x only).
* compile for both 1.x and 2.x (defining it guarantees 1.x only).
*/
#define NPY_2_0_API_VERSION 0x00000012
/*
Expand All @@ -74,7 +74,7 @@
#ifdef import_array1

static inline int
PyArray_ImportNumPyAPI()
PyArray_ImportNumPyAPI(void)
{
if (NPY_UNLIKELY(PyArray_API == NULL)) {
import_array1(-1);
Expand Down Expand Up @@ -125,7 +125,7 @@ PyArray_ImportNumPyAPI()
#define NPY_DEFAULT_INT \
(PyArray_RUNTIME_VERSION >= NPY_2_0_API_VERSION ? NPY_INTP : NPY_LONG)
#define NPY_RAVEL_AXIS \
(PyArray_RUNTIME_VERSION >= NPY_2_0_API_VERSION ? -1 : 32)
(PyArray_RUNTIME_VERSION >= NPY_2_0_API_VERSION ? NPY_MIN_INT : 32)
#define NPY_MAXARGS \
(PyArray_RUNTIME_VERSION >= NPY_2_0_API_VERSION ? 64 : 32)
#endif
Expand Down

0 comments on commit 8286759

Please sign in to comment.