Skip to content

Commit fa32b8d

Browse files
author
Ralf W. Grosse-Kunstleve
committed
boost/python/converter/builtin_converters.hpp: fix for Python 3 (by Austin Bingham)
[SVN r67432]
1 parent c501874 commit fa32b8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/boost/python/converter/builtin_converters.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ BOOST_PYTHON_TO_INT(short)
122122
BOOST_PYTHON_TO_INT(int)
123123
BOOST_PYTHON_TO_INT(long)
124124

125-
# if defined(_MSC_VER) && defined(_WIN64)
125+
# if defined(_MSC_VER) && defined(_WIN64) && PY_VERSION_HEX < 0x03000000
126126
/* Under 64-bit Windows std::size_t is "unsigned long long". To avoid
127127
getting a Python long for each std::size_t the value is checked before
128128
the conversion. A std::size_t is converted to a simple Python int

0 commit comments

Comments
 (0)