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++)
locals[i] = new LocalVariableRangeList(i);
for (int i=0; i<lvt.length; i++) {
int length = (lvt[i].end.addr + lvt[i].end.length
- lvt[i].start.addr);
locals[lvt[i].slot].addLocal(lvt[i].start.addr, length,
for (int i=0; i<lvt.length; i++)
locals[lvt[i].slot].addLocal(lvt[i].start.addr, lvt[i].end.addr,
lvt[i].name, Type.tType(lvt[i].type));
}
}
public LocalVariableRangeList getLocal(int slot)
throws ArrayIndexOutOfBoundsException

Loading…
Cancel
Save