[pypy-commit] pypy default: atypes is an unbounded array, so can't loop over it directly
wlav
noreply at buildbot.pypy.org
Wed Aug 29 00:09:32 CEST 2012
Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
Branch:
Changeset: r56915:c9d6ed8b04b7
Date: 2012-08-28 15:09 -0700
http://bitbucket.org/pypy/pypy/changeset/c9d6ed8b04b7/
Log: atypes is an unbounded array, so can't loop over it directly
diff --git a/pypy/jit/backend/llgraph/runner.py b/pypy/jit/backend/llgraph/runner.py
--- a/pypy/jit/backend/llgraph/runner.py
+++ b/pypy/jit/backend/llgraph/runner.py
@@ -365,7 +365,8 @@
from pypy.jit.backend.llsupport.ffisupport import UnsupportedKind
arg_types = []
try:
- for arg in cif_description.atypes:
+ for itp in range(cif_description.nargs):
+ arg = cif_description.atypes[itp]
kind = get_ffi_type_kind(self, arg)
if kind != history.VOID:
arg_types.append(kind)
More information about the pypy-commit
mailing list