mirror of https://github.com/acidanthera/audk.git
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:
parent
071a9a1f65
commit
3d7dfb3886
|
@ -94,7 +94,7 @@ DebugPrint (
|
||||||
DebugInfo = (EFI_DEBUG_INFO *)Buffer;
|
DebugInfo = (EFI_DEBUG_INFO *)Buffer;
|
||||||
DebugInfo->ErrorLevel = (UINT32)ErrorLevel;
|
DebugInfo->ErrorLevel = (UINT32)ErrorLevel;
|
||||||
BaseListMarker = (BASE_LIST)(DebugInfo + 1);
|
BaseListMarker = (BASE_LIST)(DebugInfo + 1);
|
||||||
FormatString = (UINT8 *)((UINT64 *)(DebugInfo + 1) + 12);
|
FormatString = (CHAR8 *)((UINT64 *)(DebugInfo + 1) + 12);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Copy the Format string into the record
|
// 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
|
// This indicates that the DEBUG() macro is passing in more argument than can be handled by
|
||||||
// the EFI_DEBUG_INFO record
|
// 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 the converted BASE_LIST is larger than the 12 * sizeof (UINT64) allocated bytes, then return
|
||||||
//
|
//
|
||||||
if ((UINT8 *)BaseListMarker > FormatString) {
|
if ((CHAR8 *)BaseListMarker > FormatString) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue