Fix sign conversion warning

This commit is contained in:
Ion Gaztañaga
2022-03-06 21:17:27 +01:00
parent 9182c07939
commit 78de6f2bf2

View File

@@ -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)];
}
//! <b>Requires</b>: size() > n.