File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
libcxx/include/__iterator Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ class __capacity_aware_iterator {
103103
104104 _LIBCPP_HIDE_FROM_ABI constexpr __capacity_aware_iterator& operator +=(difference_type __n) {
105105 _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS (
106- ( __n >= 0 ? __n : -__n) <= _ContainerMaxElements,
106+ static_cast < size_t >(( __n >= 0 ? __n : -__n) ) <= _ContainerMaxElements,
107107 " __capacity_aware_iterator::operator+=: Attempting to move iterator past its "
108108 " container's possible range" );
109109
@@ -113,7 +113,7 @@ class __capacity_aware_iterator {
113113
114114 _LIBCPP_HIDE_FROM_ABI constexpr __capacity_aware_iterator& operator -=(difference_type __n) {
115115 _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS (
116- ( __n >= 0 ? __n : -__n) <= _ContainerMaxElements,
116+ static_cast < size_t >(( __n >= 0 ? __n : -__n) ) <= _ContainerMaxElements,
117117 " __capacity_aware_iterator::operator-=: Attempting to move iterator past its container's possible range" );
118118
119119 __iter_ -= __n;
You can’t perform that action at this time.
0 commit comments