2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-19 16:32:16 +00:00

Fix warning: returning the proper type for object sizes

This commit is contained in:
Raffi Enficiaud
2017-08-15 21:32:15 +02:00
committed by Stefan Seefeld
parent 9d2903cd5e
commit 8d37630cc8

View File

@@ -48,7 +48,7 @@ inline PyObject* get(mpl::int_<N>, 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_);
}