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: 2015-05-13 06:30:37


#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 dominik.berner@…):

 That's right ssize_t is not defined for MSVC by default, however Python
 2.7.x does define it in pyconfig.h which is used by boost python. the
 define is around ln 198 in pyconfig.h (2.7.4)
 {{{
 /// pyconfig.h
 #ifdef MS_WIN64
 typedef __int64 ssize_t;
 #else
 typedef _W64 int ssize_t;
 #endif
 #define HAVE_SSIZE_T 1
 }}}

 If it's not there boost python does typedef int as ssize_t in
 boost/python/ssize_t.h

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3353#comment:4>
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:18 UTC