mirror of
https://github.com/moparisthebest/fernflower
synced 2024-12-23 08:08:49 -05:00
Fixed wrong typing of integer constants (IDEA-128594 gone deeper)
This commit is contained in:
parent
1a8e8ba7a2
commit
d1679b4127
@ -369,21 +369,6 @@ public class FunctionExprent extends Exprent {
|
||||
case FUNCTION_AND:
|
||||
case FUNCTION_OR:
|
||||
case FUNCTION_XOR:
|
||||
{
|
||||
boolean param1_false_boolean = type1.isFalseBoolean() || (param1.type == Exprent.EXPRENT_CONST && !((ConstExprent)param1).hasBooleanValue());
|
||||
boolean param2_false_boolean = type1.isFalseBoolean() || (param2.type == Exprent.EXPRENT_CONST && !((ConstExprent)param2).hasBooleanValue());
|
||||
|
||||
if(param1_false_boolean || param2_false_boolean) {
|
||||
if(type1.type == CodeConstants.TYPE_BOOLEAN) {
|
||||
result.addMinTypeExprent(param1, VarType.VARTYPE_BYTECHAR);
|
||||
}
|
||||
|
||||
if(type2.type == CodeConstants.TYPE_BOOLEAN) {
|
||||
result.addMinTypeExprent(param2, VarType.VARTYPE_BYTECHAR);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case FUNCTION_EQ:
|
||||
case FUNCTION_NE:
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user