diff options
author | Feng Tian <feng.tian@intel.com> | 2015-12-17 00:50:38 +0000 |
---|---|---|
committer | erictian <erictian@Edk2> | 2015-12-17 00:50:38 +0000 |
commit | d14198b3397d85da37d8a9f81cf233ce08c7758a (patch) | |
tree | f1ba8c7136f513dfdce4de70d12ef922245325c9 /MdeModulePkg | |
parent | 12f5ff97f6c1f87370213a00d0b36e8208beacf9 (diff) | |
download | edk2-platforms-d14198b3397d85da37d8a9f81cf233ce08c7758a.tar.xz |
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 <feng.tian@intel.com>
Reviewed-by: Qiu Shumin <shumin.qiu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19309 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Bus/Pci/PciSioSerialDxe/Serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
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,
|