1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2011-10-21 12:26:00 -07:00
parent b7de8668c6
commit bfdbec1453

View file

@ -99,6 +99,7 @@ public class Value implements IValue {
pos= idx;
}
}
private static class UnknownValueException extends Exception {}
private static UnknownValueException UNKNOWN_EX= new UnknownValueException();
private static int sUnique=0;
@ -451,8 +452,7 @@ public class Value implements IValue {
case IASTLiteralExpression.lk_char_constant:
try {
final char[] image= litEx.getValue();
if (image.length > 1)
if (image[0] == 'L')
if (image.length > 1 && image[0] == 'L')
return ExpressionEvaluator.getChar(image, 2);
return ExpressionEvaluator.getChar(image, 1);
} catch (EvalException e1) {
@ -925,7 +925,6 @@ public class Value implements IValue {
return binding.getName();
}
/**
* Converts long to a char array
*/