]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg SecCore: Fix operands of different size in bitwise operation
authorStar Zeng <star.zeng@intel.com>
Wed, 2 Aug 2017 02:07:31 +0000 (10:07 +0800)
committerStar Zeng <star.zeng@intel.com>
Wed, 2 Aug 2017 10:21:54 +0000 (18:21 +0800)
It is introduced by 9e9ca2100f22be29f1a53129d741f4305ff34a71.

Cc: Hao Wu <hao.a.wu@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Jeff Fan <jeff.fan@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
UefiCpuPkg/SecCore/SecMain.c

index e9e243ca0585594d480527f5bdfda0dad681d724..173bbfcfcba45767db3eacdc5fd60f5ae00dcd2c 100644 (file)
@@ -281,7 +281,7 @@ SecStartupPhase2(
     // will be built based on them in PEI phase.\r
     //\r
     SecCoreData->PeiTemporaryRamBase = (VOID *)(((UINTN)SecCoreData->PeiTemporaryRamBase + 7) & ~0x07);\r
-    SecCoreData->PeiTemporaryRamSize &= ~0x07;\r
+    SecCoreData->PeiTemporaryRamSize &= ~(UINTN)0x07;\r
   } else {\r
     //\r
     // No addition PPI, PpiList directly point to the common PPI list.\r