diff --git a/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/PeiLib.c b/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/PeiLib.c index 8c81c478fc..3427d86a04 100644 --- a/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/PeiLib.c +++ b/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/PeiLib.c @@ -235,7 +235,7 @@ Returns: NULL, (VOID **) &PciCfg2 ); - ASSERT_PEI_ERROR (PeiServices, Status); + ASSERT_PEI_ERROR ((CONST EFI_PEI_SERVICES **) PeiServices, Status); Status = PciCfg2->Modify ( (CONST EFI_PEI_SERVICES **) PeiServices,