mirror of
https://github.com/boostorg/python.git
synced 2026-01-19 04:22:16 +00:00
Fix a mistake in str::count()
This commit is contained in:
committed by
Stefan Seefeld
parent
03adaee6d2
commit
061050c006
@@ -184,7 +184,7 @@ class str : public detail::str_base
|
||||
template<class T1, class T2, class T3>
|
||||
long count(T1 const& sub,T2 const& start, T3 const& end) const
|
||||
{
|
||||
return base::count(object(sub), object(start));
|
||||
return base::count(object(sub), object(start), object(end));
|
||||
}
|
||||
|
||||
#if PY_VERSION_HEX < 0x03000000
|
||||
|
||||
Reference in New Issue
Block a user