Skip to content

Commit

Permalink
remove addition
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilson committed Oct 19, 2024
1 parent 96deb48 commit 8b0ebb6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cpp/src/arrow/compute/kernels/scalar_arithmetic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,6 @@ struct Atan {
template <typename T, typename Arg0>
static enable_if_floating_value<Arg0, T> Call(KernelContext*, Arg0 val, Status*) {
static_assert(std::is_same<T, Arg0>::value, "");
if (ARROW_PREDICT_FALSE((val <= -1.0 || val >= 1.0))) {
return std::numeric_limits<T>::quiet_NaN();
}
return std::atan(val);
}
};
Expand Down

0 comments on commit 8b0ebb6

Please sign in to comment.