Quiet int-to-pointer-cast warnings on i386 with GCC 9.

Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D26200
This commit is contained in:
John Baldwin 2020-09-04 00:11:01 +00:00
parent 51bb2fccfd
commit 67dc6bed1f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365318

View File

@ -290,8 +290,8 @@ efi_check_space(vm_offset_t end)
* translation still works.
*/
staging_base = addr;
memmove((void *)staging_base, (void *)staging,
staging_end - staging);
memmove((void *)(uintptr_t)staging_base,
(void *)(uintptr_t)staging, staging_end - staging);
stage_offset -= (staging - staging_base);
staging = staging_base;
return (true);