[pypy-commit] pypy win64-stage1: fix arg to is_valid_int in fakearenaaddress.__add__

ctismer noreply at buildbot.pypy.org
Sun Nov 27 01:19:49 CET 2011


Author: Christian Tismer <tismer at stackless.com>
Branch: win64-stage1
Changeset: r49844:13f1403a97a5
Date: 2011-11-27 00:14 +0100
http://bitbucket.org/pypy/pypy/changeset/13f1403a97a5/

Log:	fix arg to is_valid_int in fakearenaaddress.__add__

diff --git a/pypy/rpython/lltypesystem/llarena.py b/pypy/rpython/lltypesystem/llarena.py
--- a/pypy/rpython/lltypesystem/llarena.py
+++ b/pypy/rpython/lltypesystem/llarena.py
@@ -166,7 +166,7 @@
         return '<arenaaddr %s + %d>' % (self.arena, self.offset)
 
     def __add__(self, other):
-        if is_valid_int(other):
+        if is_valid_int(other, force_type=False):
             position = self.offset + other
         elif isinstance(other, llmemory.AddressOffset):
             # this is really some Do What I Mean logic.  There are two


More information about the pypy-commit mailing list