Skip to content

Commit

Permalink
Add suggested fix for detecting ufunc.at
Browse files Browse the repository at this point in the history
As title.
  • Loading branch information
stuartarchibald committed Oct 15, 2021
1 parent cff3dd6 commit 4df2640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numba/np/ufunc/_internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ init_ufunc_dispatch(int *numpy_uses_fastcall)
if (result < 0) break;

/* Check whether NumPy uses fastcall (ufunc.at never uses it) */
if (!strncmp(crnt_name, "at", 3)) {
if (strncmp(crnt_name, "at", 3) != 0) {
if (*numpy_uses_fastcall == -1) {
*numpy_uses_fastcall = crnt->ml_flags & METH_FASTCALL;
}
Expand Down

0 comments on commit 4df2640

Please sign in to comment.