From 6b6f74521437d556d7a047881a7efb8e17f48781 Mon Sep 17 00:00:00 2001 From: qwang12 Date: Tue, 18 Nov 2008 08:12:25 +0000 Subject: [PATCH] ICC Cleanup: add data typecast after arithemtics. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6593 6f19259b-4bc3-4df7-8a09-765794883524 --- .../RuntimeDxe/StatusCode/Lib/RtLedStatusCode/RtLedStatusCode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EdkCompatibilityPkg/Sample/Platform/Generic/RuntimeDxe/StatusCode/Lib/RtLedStatusCode/RtLedStatusCode.c b/EdkCompatibilityPkg/Sample/Platform/Generic/RuntimeDxe/StatusCode/Lib/RtLedStatusCode/RtLedStatusCode.c index a92e2817e1..adf30b80cf 100644 --- a/EdkCompatibilityPkg/Sample/Platform/Generic/RuntimeDxe/StatusCode/Lib/RtLedStatusCode/RtLedStatusCode.c +++ b/EdkCompatibilityPkg/Sample/Platform/Generic/RuntimeDxe/StatusCode/Lib/RtLedStatusCode/RtLedStatusCode.c @@ -203,7 +203,7 @@ CodeTypeToProgressCode ( // if (((CodeType & EFI_STATUS_CODE_TYPE_MASK) == EFI_PROGRESS_CODE)) { *PostCode = (UINT8) (((Value & EFI_STATUS_CODE_CLASS_MASK) >> 24) << 5); - *PostCode |= (UINT8) (((Value & EFI_STATUS_CODE_SUBCLASS_MASK) >> 16) & 0x1f); + *PostCode = (UINT8) (*PostCode | (UINT8) (((Value & EFI_STATUS_CODE_SUBCLASS_MASK) >> 16) & 0x1f)); return TRUE; }