diff --git a/src/core/model/time.cc b/src/core/model/time.cc index cda965edd..a1b389ba8 100644 --- a/src/core/model/time.cc +++ b/src/core/model/time.cc @@ -247,7 +247,8 @@ Time::SetResolution(enum Unit unit, struct Resolution* resolution, const bool co << quotient); struct Information* info = &resolution->info[i]; - if (std::pow(10, std::fabs(shift)) * quotient > std::numeric_limits::max()) + if ((std::pow(10, std::fabs(shift)) * quotient) > + static_cast(std::numeric_limits::max())) { NS_LOG_DEBUG("SetResolution for unit " << (int)unit << " loop iteration " << i << " marked as INVALID");