We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d1798e commit e5ee138Copy full SHA for e5ee138
1 file changed
ref_app/src/app/benchmark/app_benchmark_detail.h
@@ -16,7 +16,7 @@
16
template<typename NumericType>
17
constexpr auto default_tol() noexcept -> NumericType
18
{
19
- return NumericType { std::numeric_limits<NumericType>::epsilon() * NumericType(100) };
+ return NumericType { std::numeric_limits<NumericType>::epsilon() * static_cast<NumericType>(UINT8_C(100)) }; // NOLINT(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers)
20
}
21
22
@@ -35,7 +35,7 @@
35
36
else
37
38
- const NumericType ratio = a / b;
+ const NumericType ratio { a / b };
39
40
closeness = NumericType { fabs(NumericType { 1 - ratio }) };
41
0 commit comments