shithub: mc

Download patch

ref: f9508b270a1f17ee8408e636f1631a24e662ae2c
parent: 0558718a57ac7d8f07aba509f7a8f63408d52eee
author: Ori Bernstein <[email protected]>
date: Thu Aug 21 20:06:13 EDT 2014

Fix swapped loop indexes.

--- a/6/ra.c
+++ b/6/ra.c
@@ -1042,7 +1042,7 @@
         found = 0;
         for (j = 0; j < defidx; j++) {
             for (k = 0; i < useidx; k++) {
-                if (use[j].oldreg == d[k]) {
+                if (use[k].oldreg == d[j]) {
                     def[defidx].newreg = use[j].newreg;
                     bsput(s->neverspill, def[defidx].newreg->reg.id);
                     found = 1;