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
This commit is contained in:
mdkinney 2009-05-31 17:22:48 +00:00
parent 071a9a1f65
commit 3d7dfb3886
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}
}