From 9c3d10b75d63b3f3e3e7bb7f9e250d6f8c8c13dc Mon Sep 17 00:00:00 2001 From: ydong10 Date: Wed, 22 Dec 2010 08:32:56 +0000 Subject: [PATCH] Update inappropriate comments. fine code to make code run more safely. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11191 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BasePeCoffLib/Arm/PeCoffLoaderEx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MdePkg/Library/BasePeCoffLib/Arm/PeCoffLoaderEx.c b/MdePkg/Library/BasePeCoffLib/Arm/PeCoffLoaderEx.c index 2fb408e680..d6bf42738d 100644 --- a/MdePkg/Library/BasePeCoffLib/Arm/PeCoffLoaderEx.c +++ b/MdePkg/Library/BasePeCoffLib/Arm/PeCoffLoaderEx.c @@ -19,7 +19,7 @@ /** Pass in a pointer to an ARM MOVT or MOVW immediate instruciton and - return the immediate data encoded in the instruction + return the immediate data encoded in the instruction. @param Instruction Pointer to ARM MOVT or MOVW immediate instruction @@ -45,7 +45,7 @@ ThumbMovtImmediateAddress ( // imm8 -> Bit7:Bit0 Address = (UINT16)(Movt & 0x000000ff); // imm8 Address |= (UINT16)((Movt >> 4) & 0x0000f700); // imm4 imm3 - Address |= ((Movt & BIT26) ? BIT11 : 0); // i + Address |= (((Movt & BIT26) != 0) ? BIT11 : 0); // i return Address; } @@ -82,7 +82,7 @@ ThumbMovtImmediatePatch ( /** Pass in a pointer to an ARM MOVW/MOVT instruciton pair and - return the immediate data encoded in the two` instruction + return the immediate data encoded in the two` instruction. @param Instructions Pointer to ARM MOVW/MOVT insturction pair -- 2.39.2