Fix off-by-n error in Locals

This commit is contained in:
Mumfrey committed 2015-11-24 12:30:19 +00:00
1 parent 650a753af7
commit 6322cffe8b
1 file changed
-1
@@ -71,7 +71,6 @@ public class Locals {
* @param pos Start position
*/
public static void loadLocals(Type[] locals, InsnList insns, int pos, int limit) {
limit += pos;
for (; pos < locals.length && limit > 0; pos++) {
if (locals[pos] != null) {
insns.add(new VarInsnNode(locals[pos].getOpcode(Opcodes.ILOAD), pos));