]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
Fix ICC toolchain build break.
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / PciBusDxe / PciEnumeratorSupport.c
index 940d8d296108026c5a126b602687f1e6da40f02d..adf36a5b77a2d4cd22af98bdec95e92fc1bdd2e6 100644 (file)
@@ -481,11 +481,11 @@ GatherPpbInfo (
     // if so, it is assumed non-stardard I/O window alignment is supported by this bridge.\r
     // Per spec, bit 3-1 of I/O Base Register are reserved bits, so its content can't be assumed.\r
     //\r
-    Value = Temp ^ (BIT3 | BIT2 | BIT1);\r
+    Value = (UINT8)(Temp ^ (BIT3 | BIT2 | BIT1));\r
     PciIo->Pci.Write (PciIo, EfiPciIoWidthUint8, 0x1C, 1, &Value);\r
     PciIo->Pci.Read (PciIo, EfiPciIoWidthUint8, 0x1C, 1, &Value);\r
     PciIo->Pci.Write (PciIo, EfiPciIoWidthUint8, 0x1C, 1, &Temp);\r
-    Value = (Value ^ Temp) & (BIT3 | BIT2 | BIT1);\r
+    Value = (UINT8)((Value ^ Temp) & (BIT3 | BIT2 | BIT1));\r
     switch (Value) {\r
       case BIT3:\r
         PciIoDevice->BridgeIoAlignment = 0x7FF;\r