mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-30 10:24:53 +00:00
Fixed #1888 AS3 - missing casts in declarations
This commit is contained in:
@@ -135,7 +135,7 @@ public class DeclarationAVM2Item extends AVM2Item {
|
||||
coerType = ((ConvertAVM2Item) ssti.value).type;
|
||||
}
|
||||
//strip coerce if its declared as this type
|
||||
if (coerType.equals(type) && !coerType.equals(TypeItem.UNBOUNDED)) {
|
||||
if ((ssti.value instanceof CoerceAVM2Item) && coerType.equals(type) && !coerType.equals(TypeItem.UNBOUNDED)) {
|
||||
val = val.value;
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@ public class DeclarationAVM2Item extends AVM2Item {
|
||||
coerType = ((ConvertAVM2Item) spti.value).type;
|
||||
}
|
||||
//strip coerce if its declared as this type
|
||||
if (coerType.equals(type) && !coerType.equals(TypeItem.UNBOUNDED)) {
|
||||
if ((spti.value instanceof CoerceAVM2Item) && coerType.equals(type) && !coerType.equals(TypeItem.UNBOUNDED)) {
|
||||
val = val.value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user