mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics.
This commit is contained in:
parent
b7de8668c6
commit
bfdbec1453
1 changed files with 30 additions and 31 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue