From 2a8c6a78583a9dea603989a7502f3053fa7cbd3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 14 Jan 2023 17:22:25 +0100 Subject: [PATCH] Fixed #1888 AS3 - Coerces, module operator --- CHANGELOG.md | 1 + .../flash/abc/avm2/model/operations/ModuloAVM2Item.java | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d20aafe6b..f0cc19568 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ All notable changes to this project will be documented in this file. - [#1936] AS3 Direct editation - slots increment, decrement - [#1936] AS3 Direct editation - scope of nested functions - AS3 - empty P-code shown on clicking script +- [#1888] AS3 - Coerces, module operator ## [18.3.2] - 2023-01-10 ### Removed diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/ModuloAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/ModuloAVM2Item.java index 4561b69ac..678512f06 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/ModuloAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/ModuloAVM2Item.java @@ -80,9 +80,8 @@ public class ModuloAVM2Item extends BinaryOpItem implements CompoundableBinaryOp } @Override - public GraphTargetItem returnType() { - return TypeItem.INT; //? - //return TypeItem.UNBOUNDED; + public GraphTargetItem returnType() { + return TypeItem.NUMBER; } @Override