]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add explicit type cast to suppress possible warning of precession loss.
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 10 Aug 2010 07:47:20 +0000 (07:47 +0000)
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 10 Aug 2010 07:47:20 +0000 (07:47 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10786 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Atapi.c
IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/ReportStatusCodeLib.c
IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c
IntelFrameworkModulePkg/Library/SmmRuntimeDxeReportStatusCodeLibFramework/ReportStatusCodeLib.c
IntelFrameworkModulePkg/Universal/DataHubDxe/DataHub.c

index a5b92ea770a193c32c030b902ab8b0e0a1d405c6..1a3cb2e0a09d3dadf6c2d7b7502115d0990e8ef6 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
    This file contains all helper functions on the ATAPI command \r
   \r
-  Copyright (c) 2006 - 2008, 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
@@ -554,7 +554,7 @@ AtapiInquiry (
   ZeroMem (&Packet, sizeof (ATAPI_PACKET_COMMAND));\r
   Packet.Inquiry.opcode             = ATA_CMD_INQUIRY;\r
   Packet.Inquiry.page_code          = 0;\r
-  Packet.Inquiry.allocation_length  = sizeof (ATAPI_INQUIRY_DATA);\r
+  Packet.Inquiry.allocation_length  = (UINT8) sizeof (ATAPI_INQUIRY_DATA);\r
 \r
   InquiryData                       = AllocatePool (sizeof (ATAPI_INQUIRY_DATA));\r
   if (InquiryData == NULL) {\r
@@ -790,7 +790,7 @@ AtapiRequestSense (
   //\r
   ZeroMem (&Packet, sizeof (ATAPI_PACKET_COMMAND));\r
   Packet.RequestSence.opcode            = ATA_CMD_REQUEST_SENSE;\r
-  Packet.RequestSence.allocation_length = sizeof (ATAPI_REQUEST_SENSE_DATA);\r
+  Packet.RequestSence.allocation_length = (UINT8) sizeof (ATAPI_REQUEST_SENSE_DATA);\r
 \r
   //\r
   // initialize pointer\r
index 1b422b3148ec72694fa63b64db1898b37ede7a2c..cf1f74c26c1b31634ac842186c3068973f58080f 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Report Status Code Library for DXE Phase.\r
 \r
-  Copyright (c) 2006 - 2009, 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
@@ -507,7 +507,7 @@ ReportStatusCodeEx (
   //\r
   // Fill in the extended data header\r
   //\r
-  StatusCodeData->HeaderSize = sizeof (EFI_STATUS_CODE_DATA);\r
+  StatusCodeData->HeaderSize = (UINT16) sizeof (EFI_STATUS_CODE_DATA);\r
   StatusCodeData->Size = (UINT16)ExtendedDataSize;\r
   if (ExtendedDataGuid == NULL) {\r
     ExtendedDataGuid = &gEfiStatusCodeSpecificDataGuid;\r
index 9b727acbe2c9428179bbb5b07505d45c0aff8237..a3d910c9b9f920783da9dc87b616616951bee11b 100644 (file)
@@ -499,7 +499,7 @@ BdsLibVariableToOption (
   // Unicode stream to ASCII without any loss in meaning.\r
   //\r
   if (*VariableName == 'B') {\r
-    NumOff = sizeof (L"Boot")/sizeof(CHAR16) -1 ;\r
+    NumOff = (UINT8) (sizeof (L"Boot") / sizeof(CHAR16) - 1);\r
     Option->BootCurrent = (UINT16) ((VariableName[NumOff]  -'0') * 0x1000);\r
     Option->BootCurrent = (UINT16) (Option->BootCurrent + ((VariableName[NumOff+1]-'0') * 0x100));\r
     Option->BootCurrent = (UINT16) (Option->BootCurrent +  ((VariableName[NumOff+2]-'0') * 0x10));\r
index cd769d0c616ecffe6a825b576a26477bea11dbb7..6c593429d954036881d606b27c6a39f2106492d4 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   API implementation for instance of Report Status Code Library.\r
 \r
-  Copyright (c) 2006 - 2009, 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
@@ -400,7 +400,7 @@ ReportStatusCodeEx (
   //\r
   // Fill in the extended data header\r
   //\r
-  mStatusCodeData->HeaderSize = sizeof (EFI_STATUS_CODE_DATA);\r
+  mStatusCodeData->HeaderSize = (UINT16) sizeof (EFI_STATUS_CODE_DATA);\r
   mStatusCodeData->Size = (UINT16)ExtendedDataSize;\r
   if (ExtendedDataGuid == NULL) {\r
     ExtendedDataGuid = &gEfiStatusCodeSpecificDataGuid;\r
index 72287ffa8cdc0c219f6063c1b3a5514ce8fd95a1..dad529bd38bf7f936ebfb0fa429ccd54d8b5a81b 100644 (file)
@@ -2,7 +2,7 @@
   This code produces the Data Hub protocol. It preloads the data hub\r
   with status information copied in from PEI HOBs.\r
   \r
-Copyright (c) 2006 - 2009, 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
@@ -99,7 +99,7 @@ DataHubLogData (
   // Build Standard Log Header\r
   //\r
   Record->Version     = EFI_DATA_RECORD_HEADER_VERSION;\r
-  Record->HeaderSize  = sizeof (EFI_DATA_RECORD_HEADER);\r
+  Record->HeaderSize  = (UINT16) sizeof (EFI_DATA_RECORD_HEADER);\r
   Record->RecordSize  = RecordSize;\r
   CopyMem (&Record->DataRecordGuid, DataRecordGuid, sizeof (EFI_GUID));\r
   CopyMem (&Record->ProducerName, ProducerName, sizeof (EFI_GUID));\r