Skip to content

Commit 061050c

Browse files
rick68stefanseefeld
authored andcommitted
Fix a mistake in str::count()
1 parent 03adaee commit 061050c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/boost/python/str.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class str : public detail::str_base
184184
template<class T1, class T2, class T3>
185185
long count(T1 const& sub,T2 const& start, T3 const& end) const
186186
{
187-
return base::count(object(sub), object(start));
187+
return base::count(object(sub), object(start), object(end));
188188
}
189189

190190
#if PY_VERSION_HEX < 0x03000000

0 commit comments

Comments
 (0)