Skip to content

Commit 9d67b93

Browse files
committed
Fix comparison
1 parent 0bc82bf commit 9d67b93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • include/boost/math/special_functions

include/boost/math/special_functions/erf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ BOOST_MATH_GPU_ENABLED T erf_imp(T z, bool invert, const Policy& pol, const std:
221221
prefix_multiplier = -1;
222222
// return -erf_imp(T(-z), invert, pol, t);
223223
}
224-
else if(z < -0.5)
224+
else if(z < T(-0.5))
225225
{
226226
prefix_adder = 2;
227227
// return 2 - erf_imp(T(-z), invert, pol, t);

0 commit comments

Comments
 (0)