IDEA-127533 int field is displayed as char - show \n etc as chars
This commit is contained in:
@@ -394,7 +394,8 @@ public class ConstExprent extends Exprent {
|
||||
// BYTECHAR and SHORTCHAR => CHAR in the CHAR context
|
||||
if (expectedType.equals(VarType.VARTYPE_CHAR) &&
|
||||
(constType.equals(VarType.VARTYPE_BYTECHAR) || constType.equals(VarType.VARTYPE_SHORTCHAR))) {
|
||||
if (isPrintableAscii(getIntValue())) {
|
||||
int intValue = getIntValue();
|
||||
if (isPrintableAscii(intValue) || CHAR_ESCAPES.containsKey(intValue)) {
|
||||
setConstType(VarType.VARTYPE_CHAR);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user