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.
This commit is contained in:
bde 2002-09-05 12:30:54 +00:00
parent 9a172ee34e
commit b307c79502

View File

@ -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;
}