Klaas de Vries: Fix bug in libc++'s std::string::find_first_not_of.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@171321 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -3374,7 +3374,7 @@ basic_string<_CharT, _Traits, _Allocator>::find_first_not_of(value_type __c,
|
||||
{
|
||||
const_pointer __p = data();
|
||||
const_pointer __pe = __p + __sz;
|
||||
for (const_pointer __ps = __p + __pos; __p != __pe; ++__ps)
|
||||
for (const_pointer __ps = __p + __pos; __ps != __pe; ++__ps)
|
||||
if (!traits_type::eq(*__ps, __c))
|
||||
return static_cast<size_type>(__ps - __p);
|
||||
}
|
||||
|
Reference in New Issue
Block a user