]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseS3PciLib/S3PciLib.c
MdePkg: Refine casting expression result to bigger size
[mirror_edk2.git] / MdePkg / Library / BaseS3PciLib / S3PciLib.c
index e29f7fe63e4c995cc94cb5d367af7b7e7ee2ab34..27342b0eca889d32c915fb9fa5250c4df63af266 100644 (file)
@@ -3,7 +3,7 @@
   the PCI operations to be replayed during an S3 resume. This library class\r
   maps directly on top of the PciLib class. \r
 \r
-  Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions\r
@@ -25,7 +25,7 @@
 #include <Library/S3PciLib.h>\r
 \r
 #define PCILIB_TO_COMMON_ADDRESS(Address) \\r
-        ((UINT64) ((((UINTN) ((Address>>20) & 0xff)) << 24) + (((UINTN) ((Address>>15) & 0x1f)) << 16) + (((UINTN) ((Address>>12) & 0x07)) << 8) + ((UINTN) (Address & 0xfff ))))\r
+        ((((UINTN) ((Address>>20) & 0xff)) << 24) + (((UINTN) ((Address>>15) & 0x1f)) << 16) + (((UINTN) ((Address>>12) & 0x07)) << 8) + ((UINTN) (Address & 0xfff )))\r
 \r
 /**\r
   Saves a PCI configuration value to the boot script.\r