Revision: 17066
          http://sourceforge.net/p/edk2/code/17066
Author:   lzeng14
Date:     2015-03-19 02:09:49 +0000 (Thu, 19 Mar 2015)
Log Message:
-----------
EdkCompatibilityPkg: Fix 32bit build failure.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <[email protected]>
Reviewed-by: Jiewen Yao <[email protected]>

Modified Paths:
--------------
    
trunk/edk2/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c

Modified: 
trunk/edk2/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c
===================================================================
--- 
trunk/edk2/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c
  2015-03-19 02:08:27 UTC (rev 17065)
+++ 
trunk/edk2/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c
  2015-03-19 02:09:49 UTC (rev 17066)
@@ -900,9 +900,9 @@
 
     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,


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to