summaryrefslogtreecommitdiff
path: root/inc/efilink.h
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2018-03-13 15:20:21 -0400
committerNigel Croxon <ncroxon@redhat.com>2018-03-14 14:50:22 -0400
commita46a62b12b58139c31d4288384808365c4053bf2 (patch)
tree3383f9233f7fee829db36d8832e000207d77e98e /inc/efilink.h
parent3b523e30f32977427eece40016571d6d71e72d0b (diff)
downloadgnu-efi-a46a62b12b58139c31d4288384808365c4053bf2.tar.gz
Fix some types gcc doesn't like
Most of these come from building on i386 with -Wextra, but they're still incorrect everywhere else; they just happen to have identical typedefs at other places, so the compiler doesn't care. Signed-off-by: Peter Jones <pjones@redhat.com> Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
Diffstat (limited to 'inc/efilink.h')
-rw-r--r--inc/efilink.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/efilink.h b/inc/efilink.h
index b2ff4fa..cc5aa2d 100644
--- a/inc/efilink.h
+++ b/inc/efilink.h
@@ -142,7 +142,7 @@ typedef struct _LIST_ENTRY {
// EFI_FIELD_OFFSET - returns the byte offset to a field within a structure
//
-#define EFI_FIELD_OFFSET(TYPE,Field) ((UINTN)(&(((TYPE *) 0)->Field)))
+#define EFI_FIELD_OFFSET(TYPE,Field) ((UINTN)(intptr_t)(&(((TYPE *) 0)->Field)))
//
// CONTAINING_RECORD - returns a pointer to the structure