Author: Matti Picus <matti.pi...@gmail.com> Branch: Changeset: r96149:0bfaff4207c3 Date: 2019-02-24 20:25 +0200 http://bitbucket.org/pypy/pypy/changeset/0bfaff4207c3/
Log: fix when malloc() returns an address with the last bit set (arigato) diff --git a/rpython/rtyper/lltypesystem/llarena.py b/rpython/rtyper/lltypesystem/llarena.py --- a/rpython/rtyper/lltypesystem/llarena.py +++ b/rpython/rtyper/lltypesystem/llarena.py @@ -252,7 +252,7 @@ def _cast_to_int(self, symbolic=False): assert not symbolic - return self.arena._getid() + self.offset + return rffi.cast(lltype.Signed, self.arena._getid() + self.offset) def getfakearenaaddress(addr): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit