Fix StackMetadata for FieldInsnNodes

bzip2
Graham 5 years ago
parent e0d6390f87
commit 64a9ae33cb
  1. 4
      asm/src/main/java/dev/openrs2/asm/StackMetadata.kt

@ -195,9 +195,9 @@ fun AbstractInsnNode.stackMetadata(): StackMetadata = when (this) {
pops++
}
if (opcode == Opcodes.PUTFIELD || opcode == Opcodes.PUTSTATIC) {
pushes += fieldSize
} else {
pops += fieldSize
} else {
pushes += fieldSize
}
StackMetadata(pops, pushes)
}

Loading…
Cancel
Save