From 7d39b68e466dfb178b86fd5018b1c4bed986cf70 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 19 Jun 2023 01:47:31 +0300 Subject: [PATCH] Fix -Wsign-conversion issue --- include/boost/unordered/detail/foa/rw_spinlock.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/foa/rw_spinlock.hpp b/include/boost/unordered/detail/foa/rw_spinlock.hpp index 4dd62632..8437fd3a 100644 --- a/include/boost/unordered/detail/foa/rw_spinlock.hpp +++ b/include/boost/unordered/detail/foa/rw_spinlock.hpp @@ -46,7 +46,7 @@ private: // iteration until reaching a maximum which is approximately // one timeslice long (2^4 == 16 in our case) - unsigned const pause_count = 1 << k; + unsigned const pause_count = 1u << k; for( unsigned i = 0; i < pause_count; ++i ) {