Author: Wim Lavrijsen <[email protected]>
Branch: reflex-support
Changeset: r45554:acfcd4105fa7
Date: 2011-07-13 06:26 -0700
http://bitbucket.org/pypy/pypy/changeset/acfcd4105fa7/

Log:    (cfbolz, wlav) fix bool casting

diff --git a/pypy/module/cppyy/executor.py b/pypy/module/cppyy/executor.py
--- a/pypy/module/cppyy/executor.py
+++ b/pypy/module/cppyy/executor.py
@@ -61,7 +61,7 @@
 
     def execute_libffi(self, space, libffifunc, argchain):
         result = libffifunc.call(argchain, rffi.CHAR)
-        return space.wrap(result)
+        return space.wrap(bool(ord(result)))
 
 class CharExecutor(FunctionExecutor):
     _immutable_ = True
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to