mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
MdePkg:Update Return Error Macro in Base.h
Fixing RETURN_ERROR macro. It is causing problem in Coverity Static analysis tool as we are directly converting the UINT value to INTN Changing value from UINT to INTN might cause problem. Here we know that the values would not be in loss of data. To increase the code quality and increase the static tool analysis score we have to change it Cc: Jiangang He <jiangang.he@amd.com> Cc: Neo Hsueh <Hong-Chih.Hsueh@amd.com> Signed-off-by: Parth Thakkar <ParthRajeshkumar.Thakkar@amd.com>
This commit is contained in:
parent
5bb4f9694a
commit
1a89d9887f
1 changed files with 1 additions and 1 deletions
|
|
@ -1058,7 +1058,7 @@ typedef UINTN RETURN_STATUS;
|
|||
@retval FALSE The high bit of StatusCode is clear.
|
||||
|
||||
**/
|
||||
#define RETURN_ERROR(StatusCode) (((INTN)(RETURN_STATUS)(StatusCode)) < 0)
|
||||
#define RETURN_ERROR(StatusCode) (((RETURN_STATUS)(StatusCode)) >= MAX_BIT)
|
||||
|
||||
///
|
||||
/// The operation completed successfully.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue