]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix clang compiler warning.
authorandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 30 Jan 2012 19:06:17 +0000 (19:06 +0000)
committerandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 30 Jan 2012 19:06:17 +0000 (19:06 +0000)
signed-off-by:andewfish
reviewed-by:jcarsey

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12968 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/UefiShellDebug1CommandsLib/Bcfg.c
ShellPkg/Library/UefiShellInstall1CommandsLib/Bcfg.c

index fed38564e93c3941cd7ed9f974cf9727ba2266d3..d6c3ef4e1536f3850ba7f0b64a7d6709cfeabaae 100644 (file)
@@ -948,7 +948,7 @@ BcfgAddOptDebug1(
         ShellStatus = SHELL_OUT_OF_RESOURCES;\r
       }\r
       if (ShellStatus == SHELL_SUCCESS) {\r
-        ShellStatus = ShellReadFile(FileHandle, &((UINTN)Intermediate), Data);\r
+        ShellStatus = ShellReadFile(FileHandle, (UINTN *)&Intermediate, Data);\r
       }\r
     } else {\r
       Intermediate = StrSize(Data);\r
index 81d738964ea8f691170dd43e32d20c3ea6ad3320..921ebe5485216f7e2e9fab5fcb4c0eb571242bae 100644 (file)
@@ -948,7 +948,7 @@ BcfgAddOptInstall1(
         ShellStatus = SHELL_OUT_OF_RESOURCES;\r
       }\r
       if (ShellStatus == SHELL_SUCCESS) {\r
-        ShellStatus = ShellReadFile(FileHandle, &((UINTN)Intermediate), Data);\r
+        ShellStatus = ShellReadFile(FileHandle, (UINTN *)&Intermediate, Data);\r
       }\r
     } else {\r
       Intermediate = StrSize(Data);\r