aboutsummaryrefslogtreecommitdiff
path: root/gcc/cexp.y
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-10-23 17:46:10 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1996-10-23 17:46:10 -0400
commitfe81e4c4dffa8cf190088d806a823ea3be7d2895 (patch)
treeb0e09a8f2e08d4005cbe8cc4870f3f096ae34968 /gcc/cexp.y
parente1c84e1d7ac505468ec751adfca86ace9557f89f (diff)
downloadgcc-fe81e4c4dffa8cf190088d806a823ea3be7d2895.zip
gcc-fe81e4c4dffa8cf190088d806a823ea3be7d2895.tar.gz
gcc-fe81e4c4dffa8cf190088d806a823ea3be7d2895.tar.bz2
(yylex): Cast string literal to U_CHAR* for lookup() call.
From-SVN: r13014
Diffstat (limited to 'gcc/cexp.y')
-rw-r--r--gcc/cexp.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cexp.y b/gcc/cexp.y
index 8d85f80..e5a39ae 100644
--- a/gcc/cexp.y
+++ b/gcc/cexp.y
@@ -738,7 +738,8 @@ yylex ()
{
int num_bits = num_chars * width;
- if (lookup ("__CHAR_UNSIGNED__", sizeof ("__CHAR_UNSIGNED__")-1, -1)
+ if (lookup ((U_CHAR *) "__CHAR_UNSIGNED__",
+ sizeof ("__CHAR_UNSIGNED__") - 1, -1)
|| ((result >> (num_bits - 1)) & 1) == 0)
yylval.integer.value
= result & (~ (unsigned HOST_WIDE_INT) 0