]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c
ShellPkg: Refine casting expression result to bigger size
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / HexEdit / BufferImage.c
index 68d2443d2e5ed7f57dfb2fc7782fd2d74d81221d..1048ecd41593a7d256ed187f88fbbaffd3493eb3 100644 (file)
@@ -2,7 +2,7 @@
   Defines HBufferImage - the view of the file that is visible at any point,\r
   as well as the event handlers for editing the file\r
   \r
-  Copyright (c) 2005 - 2014, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2005 - 2017, 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
@@ -1108,15 +1108,15 @@ HBufferImageCharToHex (
   // change the character to hex\r
   //\r
   if (Char >= L'0' && Char <= L'9') {\r
-    return (INTN) (Char - L'0');\r
+    return (Char - L'0');\r
   }\r
 \r
   if (Char >= L'a' && Char <= L'f') {\r
-    return (INTN) (Char - L'a' + 10);\r
+    return (Char - L'a' + 10);\r
   }\r
 \r
   if (Char >= L'A' && Char <= L'F') {\r
-    return (INTN) (Char - L'A' + 10);\r
+    return (Char - L'A' + 10);\r
   }\r
 \r
   return -1;\r