diff options
| author | Sebastian Berg <sebastian@sipsolutions.net> | 2022-01-16 12:56:14 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-16 12:56:14 -0600 |
| commit | bac5117461e86034c569aa8b8603d6c4ad47d187 (patch) | |
| tree | 7fd61f1f392962e25fff33d02a8ad7c5a2f790ac | |
| parent | 4b985e2b85c7efc1d976835f74c3e45315c5ae28 (diff) | |
| parent | 072253d217502f27e575beed75db83b8216e5b90 (diff) | |
| download | numpy-bac5117461e86034c569aa8b8603d6c4ad47d187.tar.gz | |
Merge pull request #20833 from hoodmane/compare-npy-unused
BUG: Fix comparator function signatures
| -rw-r--r-- | numpy/core/src/multiarray/arraytypes.c.src | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/src/multiarray/arraytypes.c.src b/numpy/core/src/multiarray/arraytypes.c.src index 71808cc48..71401c60e 100644 --- a/numpy/core/src/multiarray/arraytypes.c.src +++ b/numpy/core/src/multiarray/arraytypes.c.src @@ -2849,7 +2849,7 @@ static int #define LT(a,b) ((a) < (b) || ((b) != (b) && (a) ==(a))) static int -@TYPE@_compare(@type@ *pa, @type@ *pb) +@TYPE@_compare(@type@ *pa, @type@ *pb, PyArrayObject *NPY_UNUSED(ap)) { const @type@ a = *pa; const @type@ b = *pb; @@ -2869,7 +2869,7 @@ static int static int -C@TYPE@_compare(@type@ *pa, @type@ *pb) +C@TYPE@_compare(@type@ *pa, @type@ *pb, PyArrayObject *NPY_UNUSED(ap)) { const @type@ ar = pa[0]; const @type@ ai = pa[1]; @@ -2924,7 +2924,7 @@ C@TYPE@_compare(@type@ *pa, @type@ *pb) */ static int -@TYPE@_compare(@type@ *pa, @type@ *pb) +@TYPE@_compare(@type@ *pa, @type@ *pb, PyArrayObject *NPY_UNUSED(ap)) { const @type@ a = *pa; const @type@ b = *pb; |
