mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 16:10:46 +00:00
Fixed: #2355 AS3 Simplify expressions feature colliding with some other features like hex values
This commit is contained in:
+5
@@ -317,4 +317,9 @@ public class DirectValueActionItem extends ActionItem implements SimpleValue {
|
||||
public String toString() {
|
||||
return "" + getResult();
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getAsLong() {
|
||||
return (long) (double) EcmaScript.toNumberAs2(value);
|
||||
}
|
||||
}
|
||||
|
||||
+3
-2
@@ -49,8 +49,9 @@ public abstract class BitwiseBinaryOpActionItem extends BinaryOpItem implements
|
||||
|
||||
@Override
|
||||
protected void operandToString(GraphTargetItem operand, GraphTextWriter writer, LocalData localData) throws InterruptedException {
|
||||
if ((operand instanceof DirectValueActionItem) && (((DirectValueActionItem) operand).value instanceof Long)) {
|
||||
long val = (long) (Long) ((DirectValueActionItem) operand).value;
|
||||
if ((operand instanceof DirectValueActionItem)
|
||||
&& ((((DirectValueActionItem) operand).value instanceof Long) || (((DirectValueActionItem) operand).value instanceof Double))) {
|
||||
long val = operand.getAsLong();
|
||||
if (val > 9) {
|
||||
String valHex = Long.toHexString(val).toUpperCase();
|
||||
if (valHex.length() % 2 == 1) {
|
||||
|
||||
Reference in New Issue
Block a user