summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHao Wu <hao.a.wu@intel.com>2017-06-08 16:07:31 +0800
committerStar Zeng <star.zeng@intel.com>2018-06-06 16:28:04 +0800
commit2b22fe75c43395992a0a530867a59a5da9cce56d (patch)
tree8a84e605b45218e4706de03503562127280317ae
parentac8d86234d0b2672d62079c35c9a8629c3dad987 (diff)
downloadedk2-2b22fe75c43395992a0a530867a59a5da9cce56d.tar.gz
edk2-2b22fe75c43395992a0a530867a59a5da9cce56d.tar.bz2
edk2-2b22fe75c43395992a0a530867a59a5da9cce56d.zip
MdeModulePkg/PciHostBridgeDxe: Make bitwise operands of the same size
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> (cherry picked from commit 8df95dd04f467c5626850b34dec564dec918c47d)
-rw-r--r--MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciRootBridgeIo.c2
1 files changed, 1 insertions, 1 deletions
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,