summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/BaseLib/String.c
diff options
context:
space:
mode:
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2007-02-12 08:12:05 +0000
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2007-02-12 08:12:05 +0000
commit15f83a8852a33624902bf4476a20ac9e5f3adae5 (patch)
tree53dc5377107369741c110c471dfb459f32b00e52 /MdePkg/Library/BaseLib/String.c
parent2419bd23d2bc617af79dfd89fdbf3a05fa6251fe (diff)
downloadedk2-15f83a8852a33624902bf4476a20ac9e5f3adae5.tar.gz
edk2-15f83a8852a33624902bf4476a20ac9e5f3adae5.tar.bz2
edk2-15f83a8852a33624902bf4476a20ac9e5f3adae5.zip
Update MDE and EdkModule packages for ICC build with /W4 /WX /Ox switches, for some latest modifications break it.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2366 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib/String.c')
-rw-r--r--MdePkg/Library/BaseLib/String.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/MdePkg/Library/BaseLib/String.c b/MdePkg/Library/BaseLib/String.c
index 402d676631..fefadc4337 100644
--- a/MdePkg/Library/BaseLib/String.c
+++ b/MdePkg/Library/BaseLib/String.c
@@ -528,7 +528,7 @@ InternalCharToUpper (
)
{
if (Char >= L'a' && Char <= L'z') {
- return Char - (L'a' - L'A');
+ return (CHAR16) (Char - (L'a' - L'A'));
}
return Char;
@@ -919,7 +919,8 @@ StrHexToUint64 (
(InternalHexCharToUintn (*String) <= REMINDER_MAX_UINT64_DIVIDED_BY_16))
);
- Result = LShiftU64 (Result, 4) + InternalHexCharToUintn (*String);
+ Result = LShiftU64 (Result, 4);
+ Result = Result + InternalHexCharToUintn (*String);
String++;
}
@@ -1930,7 +1931,8 @@ AsciiStrHexToUint64 (
(InternalAsciiHexCharToUintn (*String) <= REMINDER_MAX_UINT64_DIVIDED_BY_16))
);
- Result = LShiftU64 (Result, 4) + InternalAsciiHexCharToUintn (*String);
+ Result = LShiftU64 (Result, 4);
+ Result = Result + InternalAsciiHexCharToUintn (*String);
String++;
}