Fixed wrong typing of integer constants (IDEA-128594 gone deeper)

master
Stiver 10 years ago
parent 1a8e8ba7a2
commit d1679b4127
  1. 15
      src/de/fernflower/modules/decompiler/exps/FunctionExprent.java

@ -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…
Cancel
Save