From fd4e9ffe6344efe07820c0e4d6589f46ffffaec3 Mon Sep 17 00:00:00 2001 From: belliash Date: Mon, 14 Nov 2022 17:58:53 +0100 Subject: [PATCH] Fix compiler warning for 32bit build, use proper data types --- xtldr/modules/pecoff/pecoff.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xtldr/modules/pecoff/pecoff.c b/xtldr/modules/pecoff/pecoff.c index bd68a95..d933626 100644 --- a/xtldr/modules/pecoff/pecoff.c +++ b/xtldr/modules/pecoff/pecoff.c @@ -80,9 +80,10 @@ PeLoadImage(IN PEFI_FILE_HANDLE FileHandle, PPECOFF_IMAGE_CONTEXT ImageData; EFI_PHYSICAL_ADDRESS Address; PEFI_FILE_INFO FileInfo; - SIZE_T Pages, ReadSize; + UINT_PTR ReadSize; EFI_STATUS Status; UINT SectionSize; + SIZE_T Pages; PUCHAR Data; UINT Index;