diff options
author | bde <bde@FreeBSD.org> | 2002-09-05 12:30:54 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2002-09-05 12:30:54 +0000 |
commit | b307c795022493741b4b1665d729863cda62b277 (patch) | |
tree | be4650b96885468553e7d8fb112acea6675c1f7f /sys/compat | |
parent | 9a172ee34ea00f64c6fd936e9b6ff608c612eaeb (diff) | |
download | FreeBSD-src-b307c795022493741b4b1665d729863cda62b277.zip FreeBSD-src-b307c795022493741b4b1665d729863cda62b277.tar.gz |
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.
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |