diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1996-10-23 17:46:10 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1996-10-23 17:46:10 -0400 |
commit | fe81e4c4dffa8cf190088d806a823ea3be7d2895 (patch) | |
tree | b0e09a8f2e08d4005cbe8cc4870f3f096ae34968 /gcc/cexp.y | |
parent | e1c84e1d7ac505468ec751adfca86ace9557f89f (diff) | |
download | gcc-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.y | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |