diff options
Diffstat (limited to 'include/algorithm')
| -rw-r--r-- | include/algorithm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/algorithm b/include/algorithm index e24f9793c50b..39191db97768 100644 --- a/include/algorithm +++ b/include/algorithm @@ -1398,7 +1398,7 @@ __search_n(_RandomAccessIterator __first, _RandomAccessIterator __last, // Find first element in sequence that matchs __value_, with a mininum of loop checks while (true) { - if (__first == __s) // return __last if no element matches __value_ + if (__first >= __s) // return __last if no element matches __value_ return __last; if (__pred(*__first, __value_)) break; @@ -2764,7 +2764,7 @@ class __rs_default __rs_default(); public: - typedef unsigned result_type; + typedef uint_fast32_t result_type; static const result_type _Min = 0; static const result_type _Max = 0xFFFFFFFF; |
