(real_yylex): Use HOST_BITS_PER_WIDE_INT to determine the
authorJason Merrill <merrill@gnu.org>
Sat, 15 Oct 1994 00:32:58 +0000 (00:32 +0000)
committerJason Merrill <merrill@gnu.org>
Sat, 15 Oct 1994 00:32:58 +0000 (00:32 +0000)
        bitmask for lexing character constants.

From-SVN: r8278

gcc/cp/lex.c

index deffa0429ec0c422ec25f3755b9a3e9ae39d8ba0..44c78f0dba7b0258edfdb96228057ebba8ebce0e 100644 (file)
@@ -4198,12 +4198,12 @@ real_yylex ()
                     || ((result >> (num_bits - 1)) & 1) == 0)
              yylval.ttype
                = build_int_2 (result & ((unsigned HOST_WIDE_INT) ~0
-                                        >> (HOST_BITS_PER_INT - num_bits)),
+                                        >> (HOST_BITS_PER_WIDE_INT - num_bits)),
                               0);
            else
              yylval.ttype
                = build_int_2 (result | ~((unsigned HOST_WIDE_INT) ~0
-                                         >> (HOST_BITS_PER_INT - num_bits)),
+                                         >> (HOST_BITS_PER_WIDE_INT - num_bits)),
                               -1);
            if (num_chars<=1)
              TREE_TYPE (yylval.ttype) = char_type_node;