Skip to content

Commit da7098a

Browse files
Merge pull request #2878 from miladfarca:2b8f016f2-fix
PiperOrigin-RevId: 874639251
2 parents 2b8f016 + ce45d5a commit da7098a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

hwy/contrib/math/math_test.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,11 @@ struct TestFastLog {
274274
const double max_relative_error = 0.0007;
275275
const uint64_t samples = 1000000;
276276
if (sizeof(T) == 4) {
277-
TestMathRelative<T, D>("FastLog", std::log, CallFastLog, d, FLT_MIN,
278-
FLT_MAX, max_relative_error, samples);
277+
TestMathRelative<T, D>("FastLog", std::log, CallFastLog, d, static_cast<T>(FLT_MIN),
278+
static_cast<T>(FLT_MAX), max_relative_error, samples);
279279
} else {
280-
TestMathRelative<T, D>("FastLog", std::log, CallFastLog, d, DBL_MIN,
281-
DBL_MAX, max_relative_error, samples);
280+
TestMathRelative<T, D>("FastLog", std::log, CallFastLog, d, static_cast<T>(DBL_MIN),
281+
static_cast<T>(DBL_MAX), max_relative_error, samples);
282282
}
283283
}
284284
};

0 commit comments

Comments
 (0)