From b307c795022493741b4b1665d729863cda62b277 Mon Sep 17 00:00:00 2001 From: bde Date: Thu, 5 Sep 2002 12:30:54 +0000 Subject: Do not cast from a pointer to an integer of a possibly different size. This fixes a warning on i386's with 64-bit longs. --- sys/compat/linux/linux_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/compat/linux/linux_misc.c') diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 67d9b31..0d10fbb 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -600,7 +600,7 @@ linux_mremap(struct thread *td, struct linux_mremap_args *args) error = munmap(td, &bsd_args); } - td->td_retval[0] = error ? 0 : (u_long)args->addr; + td->td_retval[0] = error ? 0 : (uintptr_t)args->addr; return error; } -- cgit v1.1