Output was wrong with maxmembers<2

This commit is contained in:
sater 1986-11-03 09:13:32 +00:00
parent 541f3caf50
commit 79a736a9f6

View file

@ -271,7 +271,7 @@ outregs() {
l_regs[i].ri_size);
if (maxmembers!=0) {
fprintf(ctable,",{");
for(j=0;j<2;j++)
for(j=0;j<maxmembers;j++)
fprintf(ctable,"%d,",l_regs[i].ri_memb[j]);
/* now compute and print set of registers
* that clashes with this register.