From 8d37630cc8c8eb252010f3ab51cad7e149c42beb Mon Sep 17 00:00:00 2001 From: Raffi Enficiaud Date: Tue, 15 Aug 2017 21:32:15 +0200 Subject: [PATCH] Fix warning: returning the proper type for object sizes --- include/boost/python/detail/caller.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/python/detail/caller.hpp b/include/boost/python/detail/caller.hpp index c572d35a..1bd30bfb 100644 --- a/include/boost/python/detail/caller.hpp +++ b/include/boost/python/detail/caller.hpp @@ -48,7 +48,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_); }