From da01f0adde02e30bb5042db7ca73e64b7f5cae4e Mon Sep 17 00:00:00 2001 From: Thomas Kent Date: Wed, 13 May 2015 08:49:34 -0500 Subject: [PATCH 1/2] Fixes msvc unsafe type conversion warning - trac num: 3353 Adding the patch proposed by dominik.berner@... in the trac comments. https://svn.boost.org/trac/boost/ticket/3353 slice_handler.hpp does not exist, and I could not find a relevant replacement, so that part was not added. --- include/boost/python/detail/caller.hpp | 2 +- include/boost/python/list.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/python/detail/caller.hpp b/include/boost/python/detail/caller.hpp index e479bf427..39cc3603f 100644 --- a/include/boost/python/detail/caller.hpp +++ b/include/boost/python/detail/caller.hpp @@ -50,7 +50,7 @@ inline PyObject* get(mpl::int_, PyObject* const& args_) return PyTuple_GET_ITEM(args_,N); } -inline unsigned arity(PyObject* const& args_) +inline Py_ssize_t arity(PyObject* const& args_) { return PyTuple_GET_SIZE(args_); } diff --git a/include/boost/python/list.hpp b/include/boost/python/list.hpp index 10fd40fda..0d5e2c8fd 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)); } From f8810b3868b402b33ae3ff1e6805bb8ed9a522db Mon Sep 17 00:00:00 2001 From: Thomas Kent Date: Wed, 13 May 2015 09:11:47 -0500 Subject: [PATCH 2/2] Cleaned develop, this file shouldn't have been checked in here --- example/quickstart/Jamroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/quickstart/Jamroot b/example/quickstart/Jamroot index 8425638c2..9b57a0099 100644 --- a/example/quickstart/Jamroot +++ b/example/quickstart/Jamroot @@ -31,7 +31,7 @@ import testing ; testing.make-test run-pyd : extending test_extending.py : : test_ext ; # Declare a test of the embedding application -testing.run embedding embedding.cpp +testing.run embedding : # any ordinary arguments : script.py # any arguments that should be treated as relative paths : # requirements