[pypy-commit] pypy default: fix translation, cleanup
mattip
pypy.commits at gmail.com
Fri Feb 9 16:29:58 EST 2018
Author: Matti Picus <matti.picus at gmail.com>
Branch:
Changeset: r93793:8b069fa659af
Date: 2018-02-09 16:28 -0500
http://bitbucket.org/pypy/pypy/changeset/8b069fa659af/
Log: fix translation, cleanup
diff --git a/rpython/memory/gctypelayout.py b/rpython/memory/gctypelayout.py
--- a/rpython/memory/gctypelayout.py
+++ b/rpython/memory/gctypelayout.py
@@ -97,7 +97,7 @@
def q_destructor_or_custom_trace(self, typeid):
if not self.get(typeid).customdata:
- return lltype.nullptr(GCData.CUSTOM_DATA_STRUCT)
+ return lltype.nullptr(GCData.CUSTOM_FUNC_PTR.TO)
return self.get(typeid).customdata.customfunc
def q_is_old_style_finalizer(self, typeid):
diff --git a/rpython/translator/c/test/test_newgc.py b/rpython/translator/c/test/test_newgc.py
--- a/rpython/translator/c/test/test_newgc.py
+++ b/rpython/translator/c/test/test_newgc.py
@@ -573,7 +573,7 @@
return compute_hash(x)
for size in ([random.randrange(0, 260) for i in range(10)] +
[random.randrange(260, 60000)]):
- print 'PREBUILT DICTIONARY OF SIZE', size
+ #print 'PREBUILT DICTIONARY OF SIZE', size
keys = [X() for j in range(size)]
d = r_dict(keq, khash)
for j in range(size):
More information about the pypy-commit
mailing list