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