[m-dev.] diff: fix compiler warning in trace/mercury_trace_declarative.c
Fergus Henderson
fjh at cs.mu.OZ.AU
Mon Dec 27 22:42:37 AEDT 1999
Estimated hours taken: 0.2
trace/mercury_trace_declarative.c:
Fix a compiler warning: to print out values of
type `Unsigned', cast them to `unsigned long' and
print them using `%ul' rather than `%d'.
Workspace: /home/mercury0/fjh/mercury
Index: trace/mercury_trace_declarative.c
===================================================================
RCS file: /home/mercury1/repository/mercury/trace/mercury_trace_declarative.c,v
retrieving revision 1.12
diff -u -d -r1.12 mercury_trace_declarative.c
--- mercury_trace_declarative.c 1999/11/30 00:04:59 1.12
+++ mercury_trace_declarative.c 1999/12/20 12:25:25
@@ -182,9 +182,9 @@
if (event_info->MR_event_number > MR_edt_last_event) {
/* This shouldn't ever be reached. */
fprintf(MR_mdb_err, "Warning: missed final event.\n");
- fprintf(MR_mdb_err, "event %d\nlast event %d\n",
- event_info->MR_event_number,
- MR_edt_last_event);
+ fprintf(MR_mdb_err, "event %lu\nlast event %lu\n",
+ (unsigned long) event_info->MR_event_number,
+ (unsigned long) MR_edt_last_event);
MR_trace_decl_mode = MR_TRACE_INTERACTIVE;
return MR_trace_event_internal(cmd, TRUE, event_info);
}
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3 | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list