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

This commit is contained in:
Brandon Castellano authored and GitHub committed 2019-03-20 14:40:19 -04:00
1 parent 83bb62fed3
commit 3d135cc308
1 file changed
+2 -2
@@ -522,9 +522,9 @@ inline typename dtl::disable_if_memtransfer_copy_constructible<I, F, I>::type
{
F back = r;
BOOST_TRY{
while (n--) {
while (n) {
boost::container::construct_in_place(a, boost::movelib::iterator_to_raw_pointer(r), f);
++f; ++r;
++f; ++r; --n;
}
}
BOOST_CATCH(...){