You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
417 B

  1. --- a/include/private/catch.hpp
  2. +++ b/include/private/catch.hpp
  3. @@ -11095,7 +11095,11 @@ bool almostEqualUlps(FP lhs, FP rhs, int maxUlpDiff) {
  4. template <typename FP>
  5. FP step(FP start, FP direction, int steps) {
  6. for (int i = 0; i < steps; ++i) {
  7. +#ifndef __UCLIBC__
  8. start = std::nextafter(start, direction);
  9. +#else
  10. + start = ::nextafterf(start, direction);
  11. +#endif
  12. }
  13. return start;
  14. }