]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Acpi/AcpiTableDxe/Aml.c
1) Add type cast for better coding style.
[mirror_edk2.git] / MdeModulePkg / Universal / Acpi / AcpiTableDxe / Aml.c
index a7b53e27bd2e33a6254cd98d22617bf82d34b9bb..30f71bdda45c25f2f264251cdb4f1d0208a76a67 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   ACPI Sdt Protocol Driver\r
 \r
-  Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2010 - 2014, 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
@@ -282,13 +282,13 @@ AmlGetPkgLength (
     break;\r
   case 2:\r
     RealLength = *(Buffer + 1);\r
-    RealLength |= (*(Buffer + 2)) << 8;\r
+    RealLength |= (UINTN)((*(Buffer + 2)) << 8);\r
     RealLength = (RealLength << 4) | (LeadByte & 0xF);\r
     break;\r
   case 3:\r
     RealLength = *(Buffer + 1);\r
-    RealLength |= (*(Buffer + 2)) << 8;\r
-    RealLength |= (*(Buffer + 3)) << 16;\r
+    RealLength |= (UINTN)((*(Buffer + 2)) << 8);\r
+    RealLength |= (UINTN)((*(Buffer + 3)) << 16);\r
     RealLength = (RealLength << 4) | (LeadByte & 0xF);\r
     break;\r
   default:\r