From d74ab697f7f20418eeb09f0291cc480d43241dea Mon Sep 17 00:00:00 2001
From: Andrew Boie <andrew.p.boie@intel.com>
Date: Mon, 11 Nov 2013 16:12:23 -0800
Subject: [PATCH 05/74] fallback.c: fix 32-bit compilation
fh->Read expects pointer to 32-bit int, use UINTN
Change-Id: If1a728efd51a9a24dfcd8123e84bf4c0713491fe
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
---
fallback.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fallback.c b/fallback.c
index 82ddbf2..c875144 100644
--- a/fallback.c
+++ b/fallback.c
@@ -15,7 +15,7 @@
EFI_LOADED_IMAGE *this_image = NULL;
static EFI_STATUS
-get_file_size(EFI_FILE_HANDLE fh, UINT64 *retsize)
+get_file_size(EFI_FILE_HANDLE fh, UINTN *retsize)
{
EFI_STATUS rc;
void *buffer = NULL;
@@ -60,7 +60,7 @@ read_file(EFI_FILE_HANDLE fh, CHAR16 *fullpath, CHAR16 **buffer, UINT64 *bs)
return rc;
}
- UINT64 len = 0;
+ UINTN len = 0;
CHAR16 *b = NULL;
rc = get_file_size(fh2, &len);
if (EFI_ERROR(rc)) {
--
1.9.3