From ace4b38935a892d72aa5935cdc5a8153d9b4e5d0 Mon Sep 17 00:00:00 2001 From: Matt Fleming Date: Fri, 19 Oct 2012 17:02:37 +0100 Subject: com32.h: Fix MK_PTR() for 64-bit In the future we need 32/64-bit EFI to simply not include this file at all. For now, just fixup the warning about casting integers to pointers of different size. Signed-off-by: Matt Fleming --- com32/include/com32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'com32/include/com32.h') diff --git a/com32/include/com32.h b/com32/include/com32.h index 7ca187a5..c5d60176 100644 --- a/com32/include/com32.h +++ b/com32/include/com32.h @@ -176,7 +176,7 @@ static inline bool _OFFS_VALID(const volatile void *__p, size_t __s, static inline void *MK_PTR(uint16_t __seg, uint16_t __offs) { - return (void *)((__seg << 4) + __offs); + return (void *)(unsigned long)((__seg << 4) + __offs); } /* Some tools to handle 16:16 far pointers in memory */ -- cgit v1.2.1