mirror of
https://github.com/ETLCPP/etl.git
synced 2026-10-28 18:07:10 +08:00
Fixed sign conversion in advance_helper
This commit is contained in:
parent
e4dfb6c045
commit
3d564d68b9
@ -142,7 +142,8 @@ namespace etl
|
||||
template <typename TIterator, typename TDistance>
|
||||
ETL_CONSTEXPR14 void advance_helper(TIterator& itr, TDistance n, ETL_OR_STD::random_access_iterator_tag)
|
||||
{
|
||||
itr += n;
|
||||
typedef typename etl::iterator_traits<TIterator>::difference_type diff_t;
|
||||
itr += static_cast<diff_t>(n);
|
||||
}
|
||||
|
||||
template <typename TIterator, typename TDistance>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user