]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Atapi.c
Add explicit type cast to suppress possible warning of precession loss.
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Pci / IdeBusDxe / Atapi.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