Refine some code to make code run safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10873 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -45,5 +45,5 @@ GetPowerOfTwo64 (
|
||||
return 0;
|
||||
}
|
||||
|
||||
return LShiftU64 (1, HighBitSet64 (Operand));
|
||||
return LShiftU64 (1, (UINTN) HighBitSet64 (Operand));
|
||||
}
|
||||
|
@@ -424,7 +424,7 @@ BasePrintLibVSPrint (
|
||||
ArgumentString = StatusString [Index + WARNING_STATUS_NUMBER];
|
||||
}
|
||||
} else {
|
||||
Index = Status;
|
||||
Index = (UINTN) Status;
|
||||
if (Index <= WARNING_STATUS_NUMBER) {
|
||||
ArgumentString = StatusString [Index];
|
||||
}
|
||||
|
Reference in New Issue
Block a user