[m-rev.] diff: avoid a C compiler warning in .profdeep grades on saturn
Julien Fischer
juliensf at cs.mu.OZ.AU
Fri Sep 16 18:53:24 AEST 2005
Estimated hours taken: 0.1
Branches: main
Avoid a C compiler warning on x86_64.
runtime/mercury_deep_profiling.c:
In the MR_hash_ptr macro, cast `void * ' to `MR_Unsigned'
rather than `unsigned int'.
Julien.
Index: mercury_deep_profiling.c
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_deep_profiling.c,v
retrieving revision 1.18
diff -u -r1.18 mercury_deep_profiling.c
--- mercury_deep_profiling.c 14 Jun 2005 17:32:28 -0000 1.18
+++ mercury_deep_profiling.c 16 Sep 2005 08:43:04 -0000
@@ -1338,7 +1338,7 @@
(const void *) csd);
}
-#define MR_hash_ptr(ptr, table) (((unsigned int) (ptr) >> 2) % (table)->length)
+#define MR_hash_ptr(ptr, table) (((MR_Unsigned) (ptr) >> 2) % (table)->length)
static MR_bool
MR_hash_table_insert_INTERNAL(MR_ProfilingHashTable *table, const void *ptr,
--------------------------------------------------------------------------
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