diff options
Diffstat (limited to 'absl/base')
-rw-r--r-- | absl/base/internal/spinlock_wait.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<int>(r >> (44 - (loop >> 3))); } } // namespace base_internal |