Fixed: AS3 direct editation - unary minus (negate) compiled as 0 - value

This commit is contained in:
Jindra Petřík
2021-02-24 19:55:59 +01:00
parent b03cad4f90
commit e414e1919d
9 changed files with 47 additions and 4 deletions
@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.␍ */
* License along with this library.
*/
package com.jpexs.decompiler.flash.abc.avm2.parser.script;
import com.jpexs.helpers.Reference;
@@ -2280,7 +2281,7 @@ public class ActionScript3Parser {
}
ret = (num);
} else {
ret = (new SubtractAVM2Item(null, null, new IntegerValueAVM2Item(null, null, 0L), num));
ret = (new NegAVM2Item(null, null, num));
}
}
break;