Skip to content

Commit e5ee138

Browse files
committed
Deal with linters
1 parent 2d1798e commit e5ee138

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ref_app/src/app/benchmark/app_benchmark_detail.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
template<typename NumericType>
1717
constexpr auto default_tol() noexcept -> NumericType
1818
{
19-
return NumericType { std::numeric_limits<NumericType>::epsilon() * NumericType(100) };
19+
return NumericType { std::numeric_limits<NumericType>::epsilon() * static_cast<NumericType>(UINT8_C(100)) }; // NOLINT(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers)
2020
}
2121

2222
template<typename NumericType>
@@ -35,7 +35,7 @@
3535
}
3636
else
3737
{
38-
const NumericType ratio = a / b;
38+
const NumericType ratio { a / b };
3939

4040
closeness = NumericType { fabs(NumericType { 1 - ratio }) };
4141
}

0 commit comments

Comments
 (0)