diff --git a/mps/code/tagtest.c b/mps/code/tagtest.c index c1c74052cf4..fa606fe85d7 100644 --- a/mps/code/tagtest.c +++ b/mps/code/tagtest.c @@ -8,7 +8,6 @@ * scanning. */ -#include /* CHAR_BIT */ #include /* printf */ #include "mpm.h" @@ -245,14 +244,14 @@ static void test(int mode, void *marker) int main(int argc, char *argv[]) { void *marker = ▮ - mps_word_t tags[MPS_WORD_WIDTH / CHAR_BIT]; + mps_word_t tags[sizeof(mps_word_t)]; size_t i; int mode; testlib_init(argc, argv); /* Work out how many tags to use. */ - tag_bits = SizeLog2(MPS_WORD_WIDTH / CHAR_BIT); + tag_bits = SizeLog2(sizeof(mps_word_t)); Insist(TAG_COUNT <= NELEMS(tags)); /* Shuffle the tags. */