]> git.proxmox.com Git - mirror_edk2.git/commitdiff
edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/ReportStatusCode.c:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 22 May 2008 23:29:56 +0000 (23:29 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 22 May 2008 23:29:56 +0000 (23:29 +0000)
  Fix warning from Intel Compiler.

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

EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/ReportStatusCode.c

index 72efa4c45da98df6cf5efdc56484ea88e00aded8..a8145cd28aec3fd121517bbecd5e2ccbe3f8a4c6 100644 (file)
@@ -125,7 +125,7 @@ Returns:
   EFI_STATUS                Status;\r
 \r
   DevicePathSize  = (UINT16) EfiDevicePathSize (DevicePath);\r
-  Size            = DevicePathSize + sizeof (EFI_STATUS_CODE_DATA);\r
+  Size            = (UINT16) (DevicePathSize + sizeof (EFI_STATUS_CODE_DATA));\r
   ExtendedData    = (EFI_STATUS_CODE_DATA *) EfiLibAllocatePool (Size);\r
   if (ExtendedData == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r