Skip to content

Commit

Permalink
MAINT: In corr_gufunc.h, use explicit std namespace for std::isfinite
Browse files Browse the repository at this point in the history
  • Loading branch information
WarrenWeckesser committed Sep 21, 2023
1 parent fcdbc5a commit 7a9f8cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/corr/corr_gufunc.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ static void pearson_corr_core(
if (n == 2) {
T x0 = *p_x;
T x1 = get(p_x, x_stride, 1);
if (!isfinite(x0) || !isfinite(x1) || (x0 == x1)) {
if (!std::isfinite(x0) || !std::isfinite(x1) || (x0 == x1)) {
*p_out = NAN;
return;
}
T y0 = *p_y;
T y1 = get(p_y, y_stride, 1);
if (!isfinite(y0) || !isfinite(y1) || (y0 == y1)) {
if (!std::isfinite(y0) || !std::isfinite(y1) || (y0 == y1)) {
*p_out = NAN;
return;
}
Expand Down

0 comments on commit 7a9f8cb

Please sign in to comment.