]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/UefiPciSegmentLibPciRootBridgeIo/PciSegmentLib.h
Refine PCI Segment Library to avoid possible intrinsic function.
[mirror_edk2.git] / MdePkg / Library / UefiPciSegmentLibPciRootBridgeIo / PciSegmentLib.h
index 00129edea6bb405ee4e16f97115df9e8c5dcaac7..ea9fe6665e63331502bae3af0126737d2791d9ef 100644 (file)
@@ -54,6 +54,6 @@ typedef struct {
 \r
 **/\r
 #define PCI_TO_PCI_ROOT_BRIDGE_IO_ADDRESS(A) \\r
-  ((((A) << 4) & 0xff000000) | (((A) >> 4) & 0x00000700) | (((A) << 1) & 0x001f0000) | (LShiftU64((A) & 0xfff, 32)))\r
+  ((((UINT32)(A) << 4) & 0xff000000) | (((UINT32)(A) >> 4) & 0x00000700) | (((UINT32)(A) << 1) & 0x001f0000) | (LShiftU64((A) & 0xfff, 32)))\r
 \r
 #endif\r