From 404134cb5ea07b91ea2351be12055b512884a731 Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 2 Feb 2020 11:27:43 +0000 Subject: [PATCH] Remove VARTYPE_CHAR from guessType This significantly reduces the number of integers that are incorrectly converted to char literals. --- .../java/decompiler/modules/decompiler/exps/ConstExprent.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/exps/ConstExprent.java b/src/org/jetbrains/java/decompiler/modules/decompiler/exps/ConstExprent.java index d250db9..1b78fbb 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/exps/ConstExprent.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/exps/ConstExprent.java @@ -72,9 +72,6 @@ public class ConstExprent extends Exprent { else if (-32768 <= val && val <= 32767) { return VarType.VARTYPE_SHORT; } - else if (0 <= val && val <= 0xFFFF) { - return VarType.VARTYPE_CHAR; - } else { return VarType.VARTYPE_INT; }