From cf1fd92e5a9a8ba6ddae934fe079771d127e3f5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 30 Sep 2024 18:55:35 +0200 Subject: [PATCH] Fix tests --- .../flash/abc/avm2/parser/script/CallAVM2Item.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/CallAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/CallAVM2Item.java index 6b9bed180..2ce71091c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/CallAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/CallAVM2Item.java @@ -174,7 +174,12 @@ public class CallAVM2Item extends AVM2Item { if (i >= arguments.size()) { break; } - TypeItem type = new TypeItem(abc.constants.getMultiname(mi.param_types[i]).getNameWithNamespace(abc.constants, true /*??*/)); + GraphTargetItem type; + if (mi.param_types[i] == 0) { + type = TypeItem.UNBOUNDED; + } else { + type = new TypeItem(abc.constants.getMultiname(mi.param_types[i]).getNameWithNamespace(abc.constants, true /*??*/)); + } arguments.set(i, AVM2SourceGenerator.handleAndOrCoerce(arguments.get(i), type)); } }