(yylex): Cast string literal to U_CHAR* for lookup() call.
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 23 Oct 1996 21:46:10 +0000 (17:46 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 23 Oct 1996 21:46:10 +0000 (17:46 -0400)
From-SVN: r13014

gcc/cexp.y

index 8d85f80c6f967cc403c3e2a719a6e71ea9b54e7e..e5a39aea809c2212e38293579c3c1ae3c34bbbbf 100644 (file)
@@ -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