summaryrefslogtreecommitdiff
path: root/include/algorithm
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2013-04-27 17:27:12 +0000
committerDimitry Andric <dim@FreeBSD.org>2013-04-27 17:27:12 +0000
commit527d9fcb66574fdd657c3235c0d7cba7c5439d5c (patch)
treef4dbdda47a8f2e8eb8196e6a33ed834e8400837e /include/algorithm
parentc7f918d0681828afdbddfdcc354b6f3dfc2a7b68 (diff)
Notes
Diffstat (limited to 'include/algorithm')
-rw-r--r--include/algorithm4
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;