Fix implicit-int-float-conversion warning.

This commit is contained in:
Levon Ter-Grigoryan 2020-11-17 12:29:22 +01:00
parent bda3c82e11
commit 0fc5cabdfc
1 changed files with 2 additions and 1 deletions

View File

@ -114,7 +114,8 @@ ssize_t Sampler::PickNextSamplingPoint() {
// Very large values of interval overflow ssize_t. If we happen to
// hit such improbable condition, we simply cheat and clamp interval
// to largest supported value.
return static_cast<ssize_t>(std::min<double>(interval, MAX_SSIZE));
return static_cast<ssize_t>(
std::min<double>(interval, static_cast<double>(MAX_SSIZE)));
}
bool Sampler::RecordAllocationSlow(size_t k) {