[pypy-commit] pypy default: (alex, fijal): fix obvious typo

alex_gaynor noreply at buildbot.pypy.org
Sat Mar 23 06:07:51 CET 2013


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r62688:8cc0faa67469
Date: 2013-03-22 22:07 -0700
http://bitbucket.org/pypy/pypy/changeset/8cc0faa67469/

Log:	(alex, fijal): fix obvious typo

diff --git a/rpython/jit/backend/arm/regalloc.py b/rpython/jit/backend/arm/regalloc.py
--- a/rpython/jit/backend/arm/regalloc.py
+++ b/rpython/jit/backend/arm/regalloc.py
@@ -168,7 +168,7 @@
 
     def get_free_reg(self):
         free_regs = self.free_regs
-        for i in range(len(free_regs), -1, -1):
+        for i in range(len(free_regs) - 1, -1, -1):
             if free_regs[i] in self.save_around_call_regs:
                 continue
             return free_regs[i]


More information about the pypy-commit mailing list