Skip to content

Commit

Permalink
Fix finite() not being defined on MSVC.
Browse files Browse the repository at this point in the history
  • Loading branch information
kristomu committed Feb 9, 2025
1 parent 8c015f1 commit eac6d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pairwise/abstract_matrix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ double abstract_condmat::get_magnitude(size_t candidate, size_t against,
}

// Make sure num_voters is properly set.
if (!finite(get_num_voters())) {
if (!isfinite(get_num_voters())) {
throw std::out_of_range(
"get_magnitude: number of voters is not finite!");
}
Expand Down

0 comments on commit eac6d37

Please sign in to comment.