forked from boostorg/container
Get rid of integer overflow (-fsanitize=integer).
This commit is contained in:
committed by
GitHub
parent
83bb62fed3
commit
3d135cc308
@@ -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(...){
|
||||||
|
Reference in New Issue
Block a user