mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-21 20:52:21 +00:00
Fixed MultipartGenerator using the wrong local variable offsets when generating a passThrough method with wide data type args
This commit is contained in:
1 parent
3b3460279f
commit
a68f34f428
1 file changed
+5
-2
@@ -247,8 +247,11 @@ object ASMMixinCompiler
|
||||
{
|
||||
val args = getArgumentTypes(mvdesc)
|
||||
val ret = getReturnType(mvdesc)
|
||||
for(i <- 0 until args.length)
|
||||
mv.visitVarInsn(args(i).getOpcode(ILOAD), i+1)
|
||||
var localIndex = 1
|
||||
args.foreach{arg =>
|
||||
mv.visitVarInsn(arg.getOpcode(ILOAD), localIndex)
|
||||
localIndex+=width(arg)
|
||||
}
|
||||
mv.visitMethodInsn(opcode, owner, name, desc)
|
||||
mv.visitInsn(ret.getOpcode(IRETURN))
|
||||
mv.visitMaxs(Math.max(width(args)+1, width(ret)), width(args)+1)
|
||||
|
||||
Reference in new issue
Block a user