aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc/cppexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc/cppexp.c')
-rw-r--r--contrib/gcc/cppexp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/gcc/cppexp.c b/contrib/gcc/cppexp.c
index 1f225c373073..1d4ceccde956 100644
--- a/contrib/gcc/cppexp.c
+++ b/contrib/gcc/cppexp.c
@@ -293,8 +293,10 @@ lex (pfile, skip_evaluation)
{
unsigned int chars_seen;
- /* This is always a signed type. */
- op.unsignedp = 0;
+ if (token->type == CPP_CHAR)
+ op.unsignedp = 0;
+ else
+ op.unsignedp = WCHAR_UNSIGNED;
op.op = CPP_NUMBER;
op.value = cpp_interpret_charconst (pfile, token, 1, 0, &chars_seen);
return op;