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:
parent
9a172ee34e
commit
b307c79502
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user