From 22baa38bf6145e727d08c524846ce7c91d5d42cb Mon Sep 17 00:00:00 2001 From: Loo Rong Jie Date: Wed, 18 Jul 2018 09:55:24 +0800 Subject: Convert one std::numeric_limits::max() to kInfinite --- absl/synchronization/internal/kernel_timeout.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/absl/synchronization/internal/kernel_timeout.h b/absl/synchronization/internal/kernel_timeout.h index 0e50fa6d771b..92dffb7841eb 100644 --- a/absl/synchronization/internal/kernel_timeout.h +++ b/absl/synchronization/internal/kernel_timeout.h @@ -133,7 +133,7 @@ class KernelTimeout { std::numeric_limits::max() - 999999u; uint64_t ms_from_now = (std::min(max_nanos, ns_ - now) + 999999u) / 1000000u; - if (ms_from_now > std::numeric_limits::max()) { + if (ms_from_now > kInfinite) { return kInfinite; } return static_cast(ms_from_now); -- cgit 1.4.1