From ea7beacbea05481e80306cc9ee496fc429e62a39 Mon Sep 17 00:00:00 2001 From: klu2 Date: Wed, 24 Jun 2009 19:12:35 +0000 Subject: [PATCH] Fix build warning of implicitly pointer casting git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8651 6f19259b-4bc3-4df7-8a09-765794883524 --- DuetPkg/Library/DuetBdsLib/BdsPlatform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DuetPkg/Library/DuetBdsLib/BdsPlatform.c b/DuetPkg/Library/DuetBdsLib/BdsPlatform.c index da0613017f..ba9cbf5e2a 100644 --- a/DuetPkg/Library/DuetBdsLib/BdsPlatform.c +++ b/DuetPkg/Library/DuetBdsLib/BdsPlatform.c @@ -1695,10 +1695,10 @@ Returns: MpsTableNew->OemTablePointer = (UINT32)(UINTN)OemTableNew; } MpsTableNew->Checksum = 0; - MpsTableNew->Checksum = CalculateCheckSum8 (MpsTableNew, MpsTableOri->BaseTableLength); + MpsTableNew->Checksum = CalculateCheckSum8 ((UINT8*)MpsTableNew, MpsTableOri->BaseTableLength); MpsFloatingPointerNew->PhysicalAddress = (UINT32)(UINTN)MpsTableNew; MpsFloatingPointerNew->Checksum = 0; - MpsFloatingPointerNew->Checksum = CalculateCheckSum8 (MpsFloatingPointerNew, FPLength); + MpsFloatingPointerNew->Checksum = CalculateCheckSum8 ((UINT8*)MpsFloatingPointerNew, FPLength); } // // Change the pointer