Ticket #4596: squash-64-bit-warnings.patch
File squash-64-bit-warnings.patch, 2.1 KB (added by , 12 years ago) |
---|
-
boost/python/detail/caller.hpp
52 52 53 53 inline unsigned arity(PyObject* const& args_) 54 54 { 55 return PyTuple_GET_SIZE(args_);55 return static_cast<unsigned>(PyTuple_GET_SIZE(args_)); 56 56 } 57 57 58 58 // This "result converter" is really just used as -
boost/python/suite/indexing/detail/indexing_suite_detail.hpp
602 602 else { 603 603 long from = extract<long>( slice->start); 604 604 if (from < 0) // Negative slice index 605 from += max_index;605 from += long(max_index); 606 606 if (from < 0) // Clip lower bounds to zero 607 607 from = 0; 608 608 from_ = boost::numeric_cast<Index>(from); … … 616 616 else { 617 617 long to = extract<long>( slice->stop); 618 618 if (to < 0) 619 to += max_index;619 to += long(max_index); 620 620 if (to < 0) 621 621 to = 0; 622 622 to_ = boost::numeric_cast<Index>(to); -
boost/python/suite/indexing/vector_indexing_suite.hpp
173 173 { 174 174 long index = i(); 175 175 if (index < 0) 176 index += DerivedPolicies::size(container);176 index += long(DerivedPolicies::size(container)); 177 177 if (index >= long(container.size()) || index < 0) 178 178 { 179 179 PyErr_SetString(PyExc_IndexError, "Index out of range");