[pypy-svn] commit/pypy: arigo: Fix translation.

Bitbucket commits-noreply at bitbucket.org
Sun Dec 19 17:36:31 CET 2010


1 new changeset in pypy:

http://bitbucket.org/pypy/pypy/changeset/42164a893f20/
changeset:   r40134:42164a893f20
user:        arigo
date:        2010-12-19 17:36:20
summary:     Fix translation.
affected #:  1 file (43 bytes)

--- a/pypy/module/cpyext/structmember.py	Sun Dec 19 17:14:53 2010 +0100
+++ b/pypy/module/cpyext/structmember.py	Sun Dec 19 17:36:20 2010 +0100
@@ -45,7 +45,8 @@
                 w_result = space.wrap(lltype.cast_primitive(lltype.Float,
                                                             result[0]))
             elif typ == T_BOOL:
-                w_result = space.wrap(result[0] != '\x00')
+                x = rffi.cast(lltype.Signed, result[0])
+                w_result = space.wrap(x != 0)
             else:
                 w_result = space.wrap(result[0])
             return w_result

Repository URL: https://bitbucket.org/pypy/pypy/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the Pypy-commit mailing list