Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67432 - trunk/boost/python/converter
From: rwgk_at_[hidden]
Date: 2010-12-23 11:36:53


Author: rwgk
Date: 2010-12-23 11:36:53 EST (Thu, 23 Dec 2010)
New Revision: 67432
URL: http://svn.boost.org/trac/boost/changeset/67432

Log:
boost/python/converter/builtin_converters.hpp: fix for Python 3 (by Austin Bingham)
Text files modified:
   trunk/boost/python/converter/builtin_converters.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/python/converter/builtin_converters.hpp
==============================================================================
--- trunk/boost/python/converter/builtin_converters.hpp (original)
+++ trunk/boost/python/converter/builtin_converters.hpp 2010-12-23 11:36:53 EST (Thu, 23 Dec 2010)
@@ -122,7 +122,7 @@
 BOOST_PYTHON_TO_INT(int)
 BOOST_PYTHON_TO_INT(long)
 
-# if defined(_MSC_VER) && defined(_WIN64)
+# if defined(_MSC_VER) && defined(_WIN64) && PY_VERSION_HEX < 0x03000000
 /* Under 64-bit Windows std::size_t is "unsigned long long". To avoid
    getting a Python long for each std::size_t the value is checked before
    the conversion. A std::size_t is converted to a simple Python int


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk