OSDN Git Service

(real_yylex): Use HOST_BITS_PER_WIDE_INT to determine the
authormerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Oct 1994 00:32:58 +0000 (00:32 +0000)
committermerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Oct 1994 00:32:58 +0000 (00:32 +0000)
        bitmask for lexing character constants.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8278 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/lex.c

index deffa04..44c78f0 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;