projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1c84e1
)
(yylex): Cast string literal to U_CHAR* for lookup() call.
author
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 23 Oct 1996 21:46:10 +0000
(17:46 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 23 Oct 1996 21:46:10 +0000
(17:46 -0400)
From-SVN: r13014
gcc/cexp.y
patch
|
blob
|
history
diff --git
a/gcc/cexp.y
b/gcc/cexp.y
index 8d85f80c6f967cc403c3e2a719a6e71ea9b54e7e..e5a39aea809c2212e38293579c3c1ae3c34bbbbf 100644
(file)
--- 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