From dca2eb50f9f5ee378395ee020953dc20a2a84c97 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Wed, 21 Feb 2018 08:32:10 -0800 Subject: Changes imported from Abseil "staging" branch: - db061dd2b795837e6154be0991077ca5a03ec471 Release the async-signal safe demangler as an internal im... by Derek Mauro - 310440eb33d946df79d26bf1edf795f6a0b466b9 Use static_cast to constrain nanoseconds to int range, av... by Abseil Team GitOrigin-RevId: db061dd2b795837e6154be0991077ca5a03ec471 Change-Id: Ibc1bc1db355a48115451da5ce88d66a1f6e1a182 --- absl/base/internal/spinlock_wait.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'absl/base/internal') diff --git a/absl/base/internal/spinlock_wait.cc b/absl/base/internal/spinlock_wait.cc index 8f951b66dc36..9f6e9911e109 100644 --- a/absl/base/internal/spinlock_wait.cc +++ b/absl/base/internal/spinlock_wait.cc @@ -72,7 +72,7 @@ int SpinLockSuggestedDelayNS(int loop) { // Mean is exponential in loop for first 32 iterations, then 8ms. // The futex path multiplies this by 16, since we expect explicit wakeups // almost always on that path. - return r >> (44 - (loop >> 3)); + return static_cast(r >> (44 - (loop >> 3))); } } // namespace base_internal -- cgit 1.4.1