Index: boost/python/detail/caller.hpp =================================================================== --- boost/python/detail/caller.hpp (revision 66590) +++ boost/python/detail/caller.hpp (working copy) @@ -52,7 +52,7 @@ inline unsigned arity(PyObject* const& args_) { - return PyTuple_GET_SIZE(args_); + return static_cast(PyTuple_GET_SIZE(args_)); } // This "result converter" is really just used as Index: boost/python/suite/indexing/detail/indexing_suite_detail.hpp =================================================================== --- boost/python/suite/indexing/detail/indexing_suite_detail.hpp (revision 66590) +++ boost/python/suite/indexing/detail/indexing_suite_detail.hpp (working copy) @@ -600,9 +600,9 @@ from_ = min_index; } else { - long from = extract( slice->start); + Py_ssize_t from = extract(slice->start); if (from < 0) // Negative slice index - from += max_index; + from += Py_ssize_t(max_index); if (from < 0) // Clip lower bounds to zero from = 0; from_ = boost::numeric_cast(from); @@ -614,9 +614,9 @@ to_ = max_index; } else { - long to = extract( slice->stop); + Py_ssize_t to = extract(slice->stop); if (to < 0) - to += max_index; + to += Py_ssize_t(max_index); if (to < 0) to = 0; to_ = boost::numeric_cast(to);