[pypy-commit] pypy default: Fix.

arigo noreply at buildbot.pypy.org
Thu Nov 17 18:23:45 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r49499:fe6032125f68
Date: 2011-11-17 18:23 +0100
http://bitbucket.org/pypy/pypy/changeset/fe6032125f68/

Log:	Fix.

diff --git a/pypy/rpython/lltypesystem/lltype.py b/pypy/rpython/lltypesystem/lltype.py
--- a/pypy/rpython/lltypesystem/lltype.py
+++ b/pypy/rpython/lltypesystem/lltype.py
@@ -1788,7 +1788,8 @@
             cache = d.setdefault(parent, {})
         except RuntimeError:    # pointer comparison with a freed structure
             _subarray._cleanup_cache()
-            cache = d.setdefault(parent, {})    # try again
+            # try again
+            return _subarray._makeptr(parent, baseoffset_or_fieldname, solid)
         try:
             subarray = cache[baseoffset_or_fieldname]
         except KeyError:


More information about the pypy-commit mailing list