aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code/mpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'mps/code/mpm.c')
-rw-r--r--mps/code/mpm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mps/code/mpm.c b/mps/code/mpm.c
index 8af2ffff7ee..4f9af3f888c 100644
--- a/mps/code/mpm.c
+++ b/mps/code/mpm.c
@@ -34,7 +34,7 @@ unsigned CheckLevel = CHECKLEVEL_INITIAL;
34Bool MPMCheck(void) 34Bool MPMCheck(void)
35{ 35{
36 CHECKL(sizeof(Word) * CHAR_BIT == MPS_WORD_WIDTH); 36 CHECKL(sizeof(Word) * CHAR_BIT == MPS_WORD_WIDTH);
37 CHECKL(1uL << MPS_WORD_SHIFT == MPS_WORD_WIDTH); 37 CHECKL((Word)1 << MPS_WORD_SHIFT == MPS_WORD_WIDTH);
38 CHECKL(AlignCheck(MPS_PF_ALIGN)); 38 CHECKL(AlignCheck(MPS_PF_ALIGN));
39 /* Check that trace ids will fit in the TraceId type. */ 39 /* Check that trace ids will fit in the TraceId type. */
40 CHECKL(TraceLIMIT <= UINT_MAX); 40 CHECKL(TraceLIMIT <= UINT_MAX);
@@ -52,10 +52,10 @@ Bool MPMCheck(void)
52 CHECKL(!SizeIsAligned(31051, 1024)); 52 CHECKL(!SizeIsAligned(31051, 1024));
53 CHECKL(!SizeIsP2(0)); 53 CHECKL(!SizeIsP2(0));
54 CHECKL(SizeIsP2(128)); 54 CHECKL(SizeIsP2(128));
55 CHECKL(SizeLog2(1L) == 0); 55 CHECKL(SizeLog2((Size)1) == 0);
56 CHECKL(SizeLog2(256L) == 8); 56 CHECKL(SizeLog2((Size)256) == 8);
57 CHECKL(SizeLog2(65536L) == 16); 57 CHECKL(SizeLog2((Size)65536) == 16);
58 CHECKL(SizeLog2(131072L) == 17); 58 CHECKL(SizeLog2((Size)131072) == 17);
59 59
60 /* .check.writef: We check that various types will fit in a Word; */ 60 /* .check.writef: We check that various types will fit in a Word; */
61 /* See .writef.check. Don't need to check WriteFS or WriteFF as they */ 61 /* See .writef.check. Don't need to check WriteFS or WriteFF as they */