summaryrefslogtreecommitdiffstats
path: root/MdePkg
diff options
context:
space:
mode:
authorShenglei Zhang <shenglei.zhang@intel.com>2019-02-14 10:43:10 +0800
committerLiming Gao <liming.gao@intel.com>2019-02-19 16:15:15 +0800
commite5bc83f5e7a6c5f48dc10e69fca377d1478fc4dc (patch)
tree62d43155df5894a979603a2e5482313e419e2177 /MdePkg
parentc2cf8720a5aad74230767a1f11bade2d86de3745 (diff)
downloadedk2-e5bc83f5e7a6c5f48dc10e69fca377d1478fc4dc.tar.gz
edk2-e5bc83f5e7a6c5f48dc10e69fca377d1478fc4dc.tar.bz2
edk2-e5bc83f5e7a6c5f48dc10e69fca377d1478fc4dc.zip
MdePkg/BaseLib: Change a variable type in a bitwise operation
Change the type of variable Chr from CHAR8 to UINT32 in a bitwise operation, to make the two variables in the operation have the same size. https://bugzilla.tianocore.org/show_bug.cgi?id=1527 Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Library/BaseLib/String.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Library/BaseLib/String.c b/MdePkg/Library/BaseLib/String.c
index 53ff730e9e..a389115d71 100644
--- a/MdePkg/Library/BaseLib/String.c
+++ b/MdePkg/Library/BaseLib/String.c
@@ -2070,7 +2070,7 @@ Base64Decode (
Chr = DecodingTable[(UINT8) Source[SourceIndex++]];
} while (Chr == BAD_V);
Value <<= 6;
- Value |= Chr;
+ Value |= (UINT32)Chr;
}
//