diff options
author | Loo Rong Jie <loorongjie@gmail.com> | 2018-07-18 09:55:24 +0800 |
---|---|---|
committer | Loo Rong Jie <loorongjie@gmail.com> | 2018-07-18 09:55:24 +0800 |
commit | 22baa38bf6145e727d08c524846ce7c91d5d42cb (patch) | |
tree | 0a840be5926f006edd9426c13f834ce21222bc2d /absl/synchronization | |
parent | 407252f121bf219c8437f3393b9adc2e8bceaae2 (diff) |
Convert one std::numeric_limits<Dword>::max() to kInfinite
Diffstat (limited to 'absl/synchronization')
-rw-r--r-- | absl/synchronization/internal/kernel_timeout.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/synchronization/internal/kernel_timeout.h b/absl/synchronization/internal/kernel_timeout.h index 0e50fa6d..92dffb78 100644 --- a/absl/synchronization/internal/kernel_timeout.h +++ b/absl/synchronization/internal/kernel_timeout.h @@ -133,7 +133,7 @@ class KernelTimeout { std::numeric_limits<int64_t>::max() - 999999u; uint64_t ms_from_now = (std::min<uint64_t>(max_nanos, ns_ - now) + 999999u) / 1000000u; - if (ms_from_now > std::numeric_limits<DWord>::max()) { + if (ms_from_now > kInfinite) { return kInfinite; } return static_cast<DWord>(ms_from_now); |