[pypy-commit] pypy default: Translation fix

amauryfa noreply at buildbot.pypy.org
Tue Feb 14 23:02:44 CET 2012


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: 
Changeset: r52490:30cb1ba90150
Date: 2012-02-14 23:02 +0100
http://bitbucket.org/pypy/pypy/changeset/30cb1ba90150/

Log:	Translation fix

diff --git a/pypy/module/cpyext/pyfile.py b/pypy/module/cpyext/pyfile.py
--- a/pypy/module/cpyext/pyfile.py
+++ b/pypy/module/cpyext/pyfile.py
@@ -98,7 +98,7 @@
     There is no way to detect errors from this function, but doing so
     should not be needed."""
     try:
-        if newflag:
+        if rffi.cast(lltype.Signed, newflag):
             w_newflag = space.w_True
         else:
             w_newflag = space.w_False


More information about the pypy-commit mailing list