From 78de6f2bf2711895fa5fa452064e69869d2118c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sun, 6 Mar 2022 21:17:27 +0100 Subject: [PATCH] Fix sign conversion warning --- include/boost/container/vector.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/container/vector.hpp b/include/boost/container/vector.hpp index f38de63..80df0ce 100644 --- a/include/boost/container/vector.hpp +++ b/include/boost/container/vector.hpp @@ -1751,7 +1751,7 @@ private: BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_CONTAINER_FORCEINLINE reference at(size_type n) { this->priv_throw_if_out_of_range(n); - return this->m_holder.start()[n]; + return this->m_holder.start()[difference_type(n)]; } //! Requires: size() > n.