]> git.saurik.com Git - bison.git/commitdiff
(debug_lbitset): Do not assume that bitset_word is the same width as
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Oct 2002 05:41:35 +0000 (05:41 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Oct 2002 05:41:35 +0000 (05:41 +0000)
int.

lib/lbitset.c

index 023814b94e6a12244615e08b2c97009eb4ada3f6..8aa353cf781ff251cfc7ceeabdbebf867e486628 100644 (file)
@@ -1439,7 +1439,7 @@ debug_lbitset (bset)
          
          fprintf (stderr, "  Word %u:", i);
          for (j = 0; j < LBITSET_WORD_BITS; j++)
-           if ((word & (1 << j)))
+           if ((word & ((bitset_word) 1 << j)))
              fprintf (stderr, " %u", j);
          fprintf (stderr, "\n");
        }