mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 23:40:46 +00:00
Fixed AS - direct editation - long integer values
This commit is contained in:
+7
-2
@@ -1403,7 +1403,12 @@ public final class ActionScriptLexer {
|
||||
}
|
||||
case 192: break;
|
||||
case 13:
|
||||
{ return new ParsedSymbol(SymbolGroup.INTEGER, SymbolType.INTEGER, Long.parseLong((yytext())));
|
||||
{ try{
|
||||
return new ParsedSymbol(SymbolGroup.INTEGER, SymbolType.INTEGER, Long.parseLong(yytext()));
|
||||
} catch(NumberFormatException nfe){
|
||||
//its too long for a Long var
|
||||
return new ParsedSymbol(SymbolGroup.DOUBLE, SymbolType.DOUBLE, Double.parseDouble(yytext()));
|
||||
}
|
||||
}
|
||||
case 193: break;
|
||||
case 14:
|
||||
@@ -1597,7 +1602,7 @@ public final class ActionScriptLexer {
|
||||
}
|
||||
case 232: break;
|
||||
case 53:
|
||||
{ return new ParsedSymbol(SymbolGroup.DOUBLE, SymbolType.DOUBLE, Double.parseDouble((yytext())));
|
||||
{ return new ParsedSymbol(SymbolGroup.DOUBLE, SymbolType.DOUBLE, Double.parseDouble(yytext()));
|
||||
}
|
||||
case 233: break;
|
||||
case 54:
|
||||
|
||||
+7
-2
@@ -1645,7 +1645,12 @@ public final class ActionScriptLexer {
|
||||
}
|
||||
case 185: break;
|
||||
case 8:
|
||||
{ return new ParsedSymbol(SymbolGroup.INTEGER, SymbolType.INTEGER, Long.parseLong((yytext())));
|
||||
{ try{
|
||||
return new ParsedSymbol(SymbolGroup.INTEGER, SymbolType.INTEGER, Long.parseLong(yytext()));
|
||||
} catch(NumberFormatException nfe){
|
||||
//its too long for a Long var
|
||||
return new ParsedSymbol(SymbolGroup.DOUBLE, SymbolType.DOUBLE, Double.parseDouble(yytext()));
|
||||
}
|
||||
}
|
||||
case 186: break;
|
||||
case 9:
|
||||
@@ -1789,7 +1794,7 @@ public final class ActionScriptLexer {
|
||||
}
|
||||
case 219: break;
|
||||
case 42:
|
||||
{ return new ParsedSymbol(SymbolGroup.DOUBLE, SymbolType.DOUBLE, Double.parseDouble((yytext())));
|
||||
{ return new ParsedSymbol(SymbolGroup.DOUBLE, SymbolType.DOUBLE, Double.parseDouble(yytext()));
|
||||
}
|
||||
case 220: break;
|
||||
case 43:
|
||||
|
||||
Reference in New Issue
Block a user