From f93161b4403382ac7e22203af2ac452c54083b8b Mon Sep 17 00:00:00 2001 From: li-elvin Date: Tue, 2 Aug 2011 05:57:15 +0000 Subject: [PATCH] Fix 32-bit bios build error. Signed-off-by: li-elvin Reviewed-by: niruiyu git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12071 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c b/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c index 56ece92c9a..c15ecb54fa 100644 --- a/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c +++ b/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c @@ -933,7 +933,7 @@ SmbiosCreateTable ( EntryPointStructure->MaxStructureSize = (UINT16) sizeof (EndStructure); } - if (EFI_SIZE_TO_PAGES (EntryPointStructure->TableLength) > PreAllocatedPages) { + if ((UINTN) EFI_SIZE_TO_PAGES (EntryPointStructure->TableLength) > PreAllocatedPages) { // // If new SMBIOS talbe size exceeds the original pre-allocated page, // it is time to re-allocate memory (below 4GB).