Author: Armin Rigo <ar...@tunes.org>
Branch: py3.5
Changeset: r88889:2ad002c09537
Date: 2016-12-05 11:20 +0100
http://bitbucket.org/pypy/pypy/changeset/2ad002c09537/

Log:    translation fix

diff --git a/pypy/objspace/std/intobject.py b/pypy/objspace/std/intobject.py
--- a/pypy/objspace/std/intobject.py
+++ b/pypy/objspace/std/intobject.py
@@ -98,7 +98,7 @@
                 # common case
                 return wrapint(space, as_int)
             if space.is_w(w_inttype, space.w_bool):
-                return space.newbool(as_int)     # extremely obscure case
+                return space.newbool(as_int != 0)     # extremely obscure case
             w_obj = space.allocate_instance(W_IntObject, w_inttype)
             W_IntObject.__init__(w_obj, as_int)
             return w_obj
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to