[pypy-svn] r72696 - pypy/branch/fix-64/pypy/rpython/memory/test
arigo at codespeak.net
arigo at codespeak.net
Wed Mar 24 11:15:29 CET 2010
Author: arigo
Date: Wed Mar 24 11:15:28 2010
New Revision: 72696
Modified:
pypy/branch/fix-64/pypy/rpython/memory/test/test_transformed_gc.py
Log:
Fix.
Modified: pypy/branch/fix-64/pypy/rpython/memory/test/test_transformed_gc.py
==============================================================================
--- pypy/branch/fix-64/pypy/rpython/memory/test/test_transformed_gc.py (original)
+++ pypy/branch/fix-64/pypy/rpython/memory/test/test_transformed_gc.py Wed Mar 24 11:15:28 2010
@@ -4,7 +4,7 @@
from pypy.translator.c import gc
from pypy.annotation import model as annmodel
from pypy.annotation import policy as annpolicy
-from pypy.rpython.lltypesystem import lltype, llmemory, llarena, rffi
+from pypy.rpython.lltypesystem import lltype, llmemory, llarena, rffi, llgroup
from pypy.rpython.memory.gctransform import framework
from pypy.rpython.lltypesystem.lloperation import llop, void
from pypy.rpython.memory.gc.marksweep import X_CLONE, X_POOL, X_POOL_PTR
@@ -753,7 +753,7 @@
graph = graphof(translator, g)
for op in graph.startblock.operations:
if op.opname == 'do_malloc_fixedsize_clear':
- op.args = [Constant(type_id, rffi.USHORT),
+ op.args = [Constant(type_id, llgroup.HALFWORD),
Constant(llmemory.sizeof(P), lltype.Signed),
Constant(True, lltype.Bool), # can_collect
Constant(False, lltype.Bool), # has_finalizer
@@ -790,7 +790,7 @@
graph = graphof(translator, g)
for op in graph.startblock.operations:
if op.opname == 'do_malloc_fixedsize_clear':
- op.args = [Constant(type_id, rffi.USHORT),
+ op.args = [Constant(type_id, llgroup.HALFWORD),
Constant(llmemory.sizeof(P), lltype.Signed),
Constant(True, lltype.Bool), # can_collect
Constant(False, lltype.Bool), # has_finalizer
More information about the Pypy-commit
mailing list