Remove VARTYPE_CHAR from guessType

This significantly reduces the number of integers that are incorrectly
converted to char literals.
master
Graham 5 years ago
parent 94cc5ff549
commit 404134cb5e
  1. 3
      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;
}

Loading…
Cancel
Save