Re: [Boost-bugs] [Boost C++ Libraries] #3353: warning C4244: Py_ssize_t to unsigned int

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3353: warning C4244: Py_ssize_t to unsigned int
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-10-23 12:10:35


#3353: warning C4244: Py_ssize_t to unsigned int
--------------------------------+-------------------------------------------
  Reporter: davidm@… | Owner: dave
      Type: Bugs | Status: new
 Milestone: Boost 1.40.0 | Component: Python
   Version: Boost 1.39.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------+-------------------------------------------

Comment (by anonymous):

 Hi,

 this is also an issue with visual studio 2010 x64. Is it ok to do....?

 diff -r 6c6ba1352fa2 boost/boost/python/detail/caller.hpp
 --- a/boost/boost/python/detail/caller.hpp Tue Oct 23 11:44:57 2012
  +0200
 +++ b/boost/boost/python/detail/caller.hpp Tue Oct 23 14:07:25 2012
  +0200
 @@ -50,7 +50,7 @@
      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_);
  }

 Chris

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3353#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC