From 061050c0067eb32add337d383d952aa391754724 Mon Sep 17 00:00:00 2001 From: Wei-Ming Yang Date: Mon, 19 Oct 2015 12:49:12 +0800 Subject: [PATCH] Fix a mistake in `str::count()` --- include/boost/python/str.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/python/str.hpp b/include/boost/python/str.hpp index 426a3a25..434c8c98 100644 --- a/include/boost/python/str.hpp +++ b/include/boost/python/str.hpp @@ -184,7 +184,7 @@ class str : public detail::str_base template 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