diff --git a/test/tts.hpp b/test/tts.hpp index 6264054..637a3bd 100644 --- a/test/tts.hpp +++ b/test/tts.hpp @@ -1502,9 +1502,9 @@ namespace detail #define TTS_PRECISION_IMPL(LHS, RHS, N, UNIT, FUNC, PREC,FAILURE) \ [&](auto local_tts_lhs, auto local_tts_rhs) \ { \ - auto r = FUNC (local_tts_lhs,local_tts_rhs); \ + auto local_tts_r = FUNC (local_tts_lhs,local_tts_rhs); \ \ - if(r <= N) \ + if(local_tts_r <= N) \ { \ ::tts::global_runtime.pass(); return ::tts::detail::logger{false}; \ } \ @@ -1515,7 +1515,7 @@ namespace detail << ::tts::as_string(local_tts_lhs) \ << " == " << ::tts::as_string(local_tts_rhs) \ << " within " << std::setprecision(PREC) << std::fixed \ - << r << std::defaultfloat \ + << local_tts_r << std::defaultfloat \ << " " << UNIT << " when " \ << std::setprecision(PREC) << std::fixed \ << N << std::defaultfloat \