[m-rev.] trivial diff: avoid a c compiler warning
Julien Fischer
juliensf at cs.mu.OZ.AU
Tue Oct 25 17:51:21 AEST 2005
Estimated hours taken: 0
Branches: main
trace/mercury_trace_tables.c:
Avoid a C compiler warning on saturn.
Julien.
Index: mercury_trace_tables.c
===================================================================
RCS file: /home/mercury1/repository/mercury/trace/mercury_trace_tables.c,v
retrieving revision 1.39
diff -u -r1.39 mercury_trace_tables.c
--- mercury_trace_tables.c 25 Oct 2005 04:00:55 -0000 1.39
+++ mercury_trace_tables.c 25 Oct 2005 07:49:22 -0000
@@ -628,7 +628,7 @@
fprintf(fp, "\n");
for (i = type_num; i < end_type_num; i++) {
- fprintf(fp, "%s.%s/%d\n",
+ fprintf(fp, "%s.%s/%" MR_INTEGER_LENGTH_MODIFIER "d\n",
type_ctors[i]->MR_type_ctor_module_name,
type_ctors[i]->MR_type_ctor_name,
type_ctors[i]->MR_type_ctor_arity);
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list