[m-rev.] trivial diff: avoid C compiler wqarning in some runtime code

Julien Fischer juliensf at csse.unimelb.edu.au
Thu Jan 5 04:28:49 AEDT 2012


Branches: main, 11.07

runtime/mercury_memory_zones.c:
 	Avoid a warning in some debugging code.

Julien.

Index: runtime/mercury_memory_zones.c
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/runtime/mercury_memory_zones.c,v
retrieving revision 1.45
diff -u -r1.45 mercury_memory_zones.c
--- runtime/mercury_memory_zones.c	7 Dec 2011 11:29:16 -0000	1.45
+++ runtime/mercury_memory_zones.c	4 Jan 2012 17:26:32 -0000
@@ -1363,7 +1363,7 @@
  #endif
      fprintf(fp, "%-16s#%" MR_INTEGER_LENGTH_MODIFIER "d-size      = %lu\n",
          zone->MR_zone_name, zone->MR_zone_id,
-        get_zone_alloc_size(zone));
+        (unsigned long) get_zone_alloc_size(zone));
      fprintf(fp, "\n");
  }


--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list