]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add static type cast to fix ICC build failure.
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 20 Oct 2010 09:38:35 +0000 (09:38 +0000)
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 20 Oct 2010 09:38:35 +0000 (09:38 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10963 6f19259b-4bc3-4df7-8a09-765794883524

DuetPkg/EfiLdr/Debug.c

index d0049218dc80964ab470658fbc180c0e5f3c335b..a4a067ca6e87f4fd7fbdae6705c937eff86fd027 100644 (file)
@@ -1,6 +1,6 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
@@ -62,7 +62,7 @@ PrintU32Base10 (
 \r
   B10Div = 1000000000;\r
   for (Index = 0, StringPos = 0; Index < 10; Index++) {\r
-    Char = ((Value / B10Div) % 10) + '0';\r
+    Char = (UINT8) (((Value / B10Div) % 10) + '0');\r
     if ((StringPos > 0) || (Char != '0')) {\r
       String[StringPos] = Char;\r
       StringPos++;\r