Fix shadow variable in TTS
This commit is contained in:
parent
d005d5513b
commit
9901765ef9
1 changed files with 3 additions and 3 deletions
|
|
@ -1502,9 +1502,9 @@ namespace detail
|
||||||
#define TTS_PRECISION_IMPL(LHS, RHS, N, UNIT, FUNC, PREC,FAILURE) \
|
#define TTS_PRECISION_IMPL(LHS, RHS, N, UNIT, FUNC, PREC,FAILURE) \
|
||||||
[&](auto local_tts_lhs, auto local_tts_rhs) \
|
[&](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}; \
|
::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_lhs) \
|
||||||
<< " == " << ::tts::as_string(local_tts_rhs) \
|
<< " == " << ::tts::as_string(local_tts_rhs) \
|
||||||
<< " within " << std::setprecision(PREC) << std::fixed \
|
<< " within " << std::setprecision(PREC) << std::fixed \
|
||||||
<< r << std::defaultfloat \
|
<< local_tts_r << std::defaultfloat \
|
||||||
<< " " << UNIT << " when " \
|
<< " " << UNIT << " when " \
|
||||||
<< std::setprecision(PREC) << std::fixed \
|
<< std::setprecision(PREC) << std::fixed \
|
||||||
<< N << std::defaultfloat \
|
<< N << std::defaultfloat \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue