summaryrefslogtreecommitdiff
path: root/EdkCompatibilityPkg
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2015-03-19 02:09:49 +0000
committerlzeng14 <lzeng14@Edk2>2015-03-19 02:09:49 +0000
commit0ac71f158b2da40493288342ad2c978c8a795a2f (patch)
treed7da53164a23484268d9de673731dfef90d12566 /EdkCompatibilityPkg
parentafe5262ecc93502babe802f7a8b281cbb91e2d0c (diff)
downloadedk2-platforms-0ac71f158b2da40493288342ad2c978c8a795a2f.tar.xz
EdkCompatibilityPkg: Fix 32bit build failure.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17066 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkCompatibilityPkg')
-rw-r--r--EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c b/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c
index 03e7ea60c3..0bc2f75ca9 100644
--- a/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c
+++ b/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c
@@ -900,9 +900,9 @@ InitializeScriptSaveOnS3SaveState (
MemoryAddress = SIZE_4GB - 1;
if (ImageContext.SectionAlignment > EFI_PAGE_SIZE) {
- PageNumber = EFI_SIZE_TO_PAGES (ImageContext.ImageSize + ImageContext.SectionAlignment);
+ PageNumber = EFI_SIZE_TO_PAGES ((UINTN) (ImageContext.ImageSize + ImageContext.SectionAlignment));
} else {
- PageNumber = EFI_SIZE_TO_PAGES (ImageContext.ImageSize);
+ PageNumber = EFI_SIZE_TO_PAGES ((UINTN) ImageContext.ImageSize);
}
Status = gBS->AllocatePages (
AllocateMaxAddress,