2
0
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:
Wei-Ming Yang
2015-10-19 12:49:12 +08:00
committed by Stefan Seefeld
parent 03adaee6d2
commit 061050c006

View File

@@ -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