From 8df95dd04f467c5626850b34dec564dec918c47d Mon Sep 17 00:00:00 2001 From: Hao Wu Date: Thu, 8 Jun 2017 16:07:31 +0800 Subject: [PATCH] MdeModulePkg/PciHostBridgeDxe: Make bitwise operands of the same size Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu Reviewed-by: Jiewen Yao Reviewed-by: Laszlo Ersek --- MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciRootBridgeIo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciRootBridgeIo.c b/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciRootBridgeIo.c index a0e7e5b6f2..8e4f032772 100644 --- a/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciRootBridgeIo.c +++ b/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciRootBridgeIo.c @@ -1349,7 +1349,7 @@ RootBridgeIoAllocateBuffer ( // // Clear DUAL_ADDRESS_CYCLE // - Attributes &= ~EFI_PCI_ATTRIBUTE_DUAL_ADDRESS_CYCLE; + Attributes &= ~((UINT64) EFI_PCI_ATTRIBUTE_DUAL_ADDRESS_CYCLE); } Status = mIoMmuProtocol->AllocateBuffer ( mIoMmuProtocol, -- 2.39.2