diff options
author | li-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-08-02 05:57:15 +0000 |
---|---|---|
committer | li-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-08-02 05:57:15 +0000 |
commit | f93161b4403382ac7e22203af2ac452c54083b8b (patch) | |
tree | d8e6b45fd3758446d0f59bb0789669c370d28b66 /MdeModulePkg | |
parent | fbd770b631bbd95f6e1ee5fd6b40f716d576a81a (diff) | |
download | edk2-f93161b4403382ac7e22203af2ac452c54083b8b.tar.gz edk2-f93161b4403382ac7e22203af2ac452c54083b8b.tar.bz2 edk2-f93161b4403382ac7e22203af2ac452c54083b8b.zip |
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c | 2 |
1 files changed, 1 insertions, 1 deletions
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).
|