[pypy-svn] r79220 - pypy/branch/reflex-support/pypy/module/cppyy

cfbolz at codespeak.net cfbolz at codespeak.net
Wed Nov 17 19:48:00 CET 2010


Author: cfbolz
Date: Wed Nov 17 19:47:56 2010
New Revision: 79220

Modified:
   pypy/branch/reflex-support/pypy/module/cppyy/converter.py
Log:
fix another issue


Modified: pypy/branch/reflex-support/pypy/module/cppyy/converter.py
==============================================================================
--- pypy/branch/reflex-support/pypy/module/cppyy/converter.py	(original)
+++ pypy/branch/reflex-support/pypy/module/cppyy/converter.py	Wed Nov 17 19:47:56 2010
@@ -91,7 +91,7 @@
         if len(value) != 1:  
             raise OperationError(space.w_TypeError,
                                  space.wrap("char expecter, got string of size %d" % len(value)))
-        return value
+        return value[0] # turn it into a "char" to the annotator
 
     def convert_argument(self, space, w_obj):
         arg = self._from_space(space, w_obj)



More information about the Pypy-commit mailing list