|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r71050 - trunk/libs/python/src/converter
From: rwgk_at_[hidden]
Date: 2011-04-06 17:33:03
Author: rwgk
Date: 2011-04-06 17:32:59 EDT (Wed, 06 Apr 2011)
New Revision: 71050
URL: http://svn.boost.org/trac/boost/changeset/71050
Log:
libs/python/src/converter/builtin_converters.cpp: Python 3.2 compatibility, based on patch by Matthew Bradbury, fixes issue #4994
Text files modified:
trunk/libs/python/src/converter/builtin_converters.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
Modified: trunk/libs/python/src/converter/builtin_converters.cpp
==============================================================================
--- trunk/libs/python/src/converter/builtin_converters.cpp (original)
+++ trunk/libs/python/src/converter/builtin_converters.cpp 2011-04-06 17:32:59 EDT (Wed, 06 Apr 2011)
@@ -431,7 +431,10 @@
if (!result.empty())
{
int err = PyUnicode_AsWideChar(
- (PyUnicodeObject *)intermediate
+#if PY_VERSION_HEX < 0x03020000
+ (PyUnicodeObject *)
+#endif
+ intermediate
, &result[0]
, result.size());
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