From fe81e4c4dffa8cf190088d806a823ea3be7d2895 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 23 Oct 1996 17:46:10 -0400 Subject: [PATCH] (yylex): Cast string literal to U_CHAR* for lookup() call. From-SVN: r13014 --- gcc/cexp.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/cexp.y b/gcc/cexp.y index 8d85f80c6f9..e5a39aea809 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 -- 2.30.2