diff options
| author | Michael Brown | 2025-04-20 14:39:32 +0200 |
|---|---|---|
| committer | Michael Brown | 2025-04-20 18:21:53 +0200 |
| commit | 71174e19d8c93dc99221c5fe32db6a78c6a7ffb3 (patch) | |
| tree | b3cc53e39f65fb6fb9ae0da4aba13b60c3f48e55 /src/interface/efi/efi_umalloc.c | |
| parent | [uaccess] Rename userptr_sub() to userptr_diff() (diff) | |
| download | ipxe-71174e19d8c93dc99221c5fe32db6a78c6a7ffb3.tar.gz ipxe-71174e19d8c93dc99221c5fe32db6a78c6a7ffb3.tar.xz ipxe-71174e19d8c93dc99221c5fe32db6a78c6a7ffb3.zip | |
[uaccess] Add explicit casts to and from userptr_t where needed
Allow for the possibility of userptr_t becoming a pointer type by
adding explicit casts where necessary.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface/efi/efi_umalloc.c')
| -rw-r--r-- | src/interface/efi/efi_umalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface/efi/efi_umalloc.c b/src/interface/efi/efi_umalloc.c index e3f1dacc2..175ae367e 100644 --- a/src/interface/efi/efi_umalloc.c +++ b/src/interface/efi/efi_umalloc.c @@ -36,7 +36,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); */ /** Equivalent of NOWHERE for user pointers */ -#define UNOWHERE ( ~UNULL ) +#define UNOWHERE ( ( userptr_t ) ~( ( intptr_t ) 0 ) ) /** * Reallocate external memory |
