From d1679b412705438598085e79476feb8da8bafd2e Mon Sep 17 00:00:00 2001 From: Stiver Date: Sun, 17 Aug 2014 19:15:15 +0200 Subject: [PATCH] Fixed wrong typing of integer constants (IDEA-128594 gone deeper) --- .../modules/decompiler/exps/FunctionExprent.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/de/fernflower/modules/decompiler/exps/FunctionExprent.java b/src/de/fernflower/modules/decompiler/exps/FunctionExprent.java index 2f75b71..d1637f4 100644 --- a/src/de/fernflower/modules/decompiler/exps/FunctionExprent.java +++ b/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: {