]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix ICC toolchain build break.
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 25 Dec 2009 01:56:24 +0000 (01:56 +0000)
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 25 Dec 2009 01:56:24 +0000 (01:56 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9600 6f19259b-4bc3-4df7-8a09-765794883524

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
     // 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
     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
     switch (Value) {\r
       case BIT3:\r
         PciIoDevice->BridgeIoAlignment = 0x7FF;\r