--- utils/rpctrace.c | 4 ++-- utils/vmallocate.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/utils/rpctrace.c b/utils/rpctrace.c index 589ce8f..f7046a0 100644 --- a/utils/rpctrace.c +++ b/utils/rpctrace.c @@ -810,10 +810,10 @@ print_contents (mach_msg_header_t *inp, int first = 1; /* Process the message data, wrapping ports and printing data. */ - while (msg_buf_ptr < (char *) inp + inp->msgh_size) + while ((char *) msg_buf_ptr < (char *) inp + inp->msgh_size) { mach_msg_type_t *const type = msg_buf_ptr; - mach_msg_type_long_t *const lt = (void *) type; + mach_msg_type_long_t *const lt = (mach_msg_type_long_t *) type; void *data; mach_msg_type_number_t nelt; /* Number of data items. */ mach_msg_type_size_t eltsize; /* Bytes per item. */ diff --git a/utils/vmallocate.c b/utils/vmallocate.c index 039b309..b7eafed 100644 --- a/utils/vmallocate.c +++ b/utils/vmallocate.c @@ -207,7 +207,7 @@ main (int argc, char **argv) *p = 1; if (verbose > 1 - && ((unsigned int) (p - address) & ((1U<<20) - 1)) == 0) + && ((uintptr_t) (p - address) & ((1UL<<20) - 1)) == 0) fprintf (stderr, "\r%"PRIu64, allocated + ((uint64_t) (uintptr_t) p - (uint64_t) address)); -- 2.39.2