end.addr instead of length

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@659 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 2f565d8d73
commit 63024882bf
  1. 7
      jode/jode/decompiler/LocalVariableTable.java

@ -31,13 +31,10 @@ public class LocalVariableTable {
for (int i=0; i < maxLocals; i++) for (int i=0; i < maxLocals; i++)
locals[i] = new LocalVariableRangeList(i); locals[i] = new LocalVariableRangeList(i);
for (int i=0; i<lvt.length; i++) { for (int i=0; i<lvt.length; i++)
int length = (lvt[i].end.addr + lvt[i].end.length locals[lvt[i].slot].addLocal(lvt[i].start.addr, lvt[i].end.addr,
- lvt[i].start.addr);
locals[lvt[i].slot].addLocal(lvt[i].start.addr, length,
lvt[i].name, Type.tType(lvt[i].type)); lvt[i].name, Type.tType(lvt[i].type));
} }
}
public LocalVariableRangeList getLocal(int slot) public LocalVariableRangeList getLocal(int slot)
throws ArrayIndexOutOfBoundsException throws ArrayIndexOutOfBoundsException

Loading…
Cancel
Save