From 61890da12b3d0150f25b6edd783f320d957b223f Mon Sep 17 00:00:00 2001 From: Richard Brooksby Date: Mon, 23 Apr 2012 16:20:40 +0100 Subject: Fixing up occurences of "unsigned long" in the main mps and test code so that we no longer assume that "unsigned long" is large enough for a pointer or size, or that it's the longest available integer type, since these are not true on 64-bit windows. Copied from Perforce Change: 178021 ServerID: perforce.ravenbrook.com --- mps/code/amcss.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mps/code/amcss.c') diff --git a/mps/code/amcss.c b/mps/code/amcss.c index 0590f81c0c7..7055bf94b70 100644 --- a/mps/code/amcss.c +++ b/mps/code/amcss.c @@ -86,7 +86,7 @@ static void report(mps_arena_t arena) nCollsStart += 1; printf("\n{\n Collection %d started. Because:\n", nCollsStart); printf(" %s\n", mps_message_gc_start_why(arena, message)); - printf(" clock: %lu\n", (unsigned long)mps_message_clock(arena, message)); + printf(" clock: %"PRIuLONGEST"\n", (ulongest_t)mps_message_clock(arena, message)); break; } case mps_message_type_gc(): { @@ -98,10 +98,10 @@ static void report(mps_arena_t arena) not_condemned = mps_message_gc_not_condemned_size(arena, message); printf("\n Collection %d finished:\n", nCollsDone); - printf(" live %lu\n", (unsigned long)live); - printf(" condemned %lu\n", (unsigned long)condemned); - printf(" not_condemned %lu\n", (unsigned long)not_condemned); - printf(" clock: %lu\n", (unsigned long)mps_message_clock(arena, message)); + printf(" live %"PRIuLONGEST"\n", (ulongest_t)live); + printf(" condemned %"PRIuLONGEST"\n", (ulongest_t)condemned); + printf(" not_condemned %"PRIuLONGEST"\n", (ulongest_t)not_condemned); + printf(" clock: %"PRIuLONGEST"\n", (ulongest_t)mps_message_clock(arena, message)); printf("}\n"); if(condemned > (gen1SIZE + gen2SIZE + (size_t)128) * 1024) { -- cgit v1.2.1