From 4b01139720128d45e6887b78271baf4eb201e24d Mon Sep 17 00:00:00 2001 From: Tom Kent Date: Sun, 3 Mar 2019 21:02:57 -0600 Subject: [PATCH] Ssize t warning - trac #3353 (#21) Fixes msvc unsafe type conversion warning - trac num: 3353 --- include/boost/python/list.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/python/list.hpp b/include/boost/python/list.hpp index 10fd40fd..0d5e2c8f 100644 --- a/include/boost/python/list.hpp +++ b/include/boost/python/list.hpp @@ -73,7 +73,7 @@ class list : public detail::list_base } template - long count(T const& value) const + ssize_t count(T const& value) const { return base::count(object(value)); }