From d14198b3397d85da37d8a9f81cf233ce08c7758a Mon Sep 17 00:00:00 2001 From: Feng Tian Date: Thu, 17 Dec 2015 00:50:38 +0000 Subject: MdeModulePkg/PciSioSerialDxe:bitwise operation have same width operands Operands in a bitwise operation have different size. Update code to fix it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian Reviewed-by: Qiu Shumin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19309 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MdeModulePkg') diff --git a/MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.c b/MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.c index e8cefecd8d..aeafee247c 100644 --- a/MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.c +++ b/MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.c @@ -982,7 +982,7 @@ SerialControllerDriverStart ( &Supports ); if (!EFI_ERROR (Status)) { - Supports &= EFI_PCI_IO_ATTRIBUTE_IO | EFI_PCI_IO_ATTRIBUTE_MEMORY; + Supports &= (UINT64)(EFI_PCI_IO_ATTRIBUTE_IO | EFI_PCI_IO_ATTRIBUTE_MEMORY); Status = ParentIo.PciIo->Attributes ( ParentIo.PciIo, EfiPciIoAttributeOperationEnable, -- cgit v1.2.3