Get rid of integer overflow (-fsanitize=integer).

This commit is contained in:
Brandon Castellano
2019-03-20 14:40:19 -04:00
committed by GitHub
parent 83bb62fed3
commit 3d135cc308

View File

@@ -522,9 +522,9 @@ inline typename dtl::disable_if_memtransfer_copy_constructible<I, F, I>::type
{ {
F back = r; F back = r;
BOOST_TRY{ BOOST_TRY{
while (n--) { while (n) {
boost::container::construct_in_place(a, boost::movelib::iterator_to_raw_pointer(r), f); boost::container::construct_in_place(a, boost::movelib::iterator_to_raw_pointer(r), f);
++f; ++r; ++f; ++r; --n;
} }
} }
BOOST_CATCH(...){ BOOST_CATCH(...){