From 3d7dfb3886b172f1656987dbdce49743e18e4cbf Mon Sep 17 00:00:00 2001 From: mdkinney Date: Sun, 31 May 2009 17:22:48 +0000 Subject: [PATCH] Change (UINT8 *) to (CHAR *) to make types the same for comparison operations git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8415 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/PeiDxeDebugLibReportStatusCode/DebugLib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c b/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c index 79a33dc04e..cafe0c6242 100644 --- a/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c +++ b/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c @@ -94,7 +94,7 @@ DebugPrint ( DebugInfo = (EFI_DEBUG_INFO *)Buffer; DebugInfo->ErrorLevel = (UINT32)ErrorLevel; BaseListMarker = (BASE_LIST)(DebugInfo + 1); - FormatString = (UINT8 *)((UINT64 *)(DebugInfo + 1) + 12); + FormatString = (CHAR8 *)((UINT64 *)(DebugInfo + 1) + 12); // // Copy the Format string into the record @@ -191,12 +191,12 @@ DebugPrint ( // This indicates that the DEBUG() macro is passing in more argument than can be handled by // the EFI_DEBUG_INFO record // - ASSERT ((UINT8 *)BaseListMarker <= FormatString); + ASSERT ((CHAR8 *)BaseListMarker <= FormatString); // // If the converted BASE_LIST is larger than the 12 * sizeof (UINT64) allocated bytes, then return // - if ((UINT8 *)BaseListMarker > FormatString) { + if ((CHAR8 *)BaseListMarker > FormatString) { return; } }