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