[pypy-commit] pypy default: fix argument naming
fijal
noreply at buildbot.pypy.org
Tue Jul 24 16:17:53 CEST 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r56424:7e454f5fdfe8
Date: 2012-07-24 16:17 +0200
http://bitbucket.org/pypy/pypy/changeset/7e454f5fdfe8/
Log: fix argument naming
diff --git a/pypy/rlib/jit.py b/pypy/rlib/jit.py
--- a/pypy/rlib/jit.py
+++ b/pypy/rlib/jit.py
@@ -117,7 +117,7 @@
argstring = ", ".join(args)
code = ["def f(%s):\n" % (argstring, )]
if promote_args != 'all':
- args = [('v%d' % int(i)) for i in promote_args.split(",")]
+ args = [args[i] for i in promote_args.split(",")]
for arg in args:
code.append(" %s = hint(%s, promote=True)\n" % (arg, arg))
code.append(" return func(%s)\n" % (argstring, ))
More information about the pypy-commit
mailing list