aboutsummaryrefslogtreecommitdiff
path: root/contrib/libc++/include/algorithm
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2013-04-27 22:47:52 +0000
committerDimitry Andric <dim@FreeBSD.org>2013-04-27 22:47:52 +0000
commit1bf9f7c1c5ed00800ed5db4857b042e40ab9a47e (patch)
treee5a6a26d0973c6968273f6fabb61cb3d624be555 /contrib/libc++/include/algorithm
parenta9caca6a7584ca60d7c332aada95f488d051f533 (diff)
parent527d9fcb66574fdd657c3235c0d7cba7c5439d5c (diff)
Notes
Diffstat (limited to 'contrib/libc++/include/algorithm')
-rw-r--r--contrib/libc++/include/algorithm4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/libc++/include/algorithm b/contrib/libc++/include/algorithm
index e24f9793c50b..39191db97768 100644
--- a/contrib/libc++/include/algorithm
+++ b/contrib/libc++/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;