]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/PciHostBridgeDxe: fix Ia32 GCC44 build error
authorLaszlo Ersek <lersek@redhat.com>
Thu, 14 Jul 2016 09:53:50 +0000 (11:53 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Mon, 18 Jul 2016 17:22:41 +0000 (19:22 +0200)
> cc1: warnings being treated as errors
> MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c:
>   In function 'GetProposedResources':
> MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c:1388:
>   error: integer constant is too large for 'long' type

Append a ULL suffix to the replacement text of PCI_RESOURCE_LESS that is
aligned with the style of the EFI_RESOURCE_SATISFIED and
EFI_RESOURCE_NOT_SATISFIED macros.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostResource.h

index f35222b634b7d01defd1bfac7fd2f5c3f58cd83b..8612c0c3251bfc6dcd9efae38294a8fc17a3d8ca 100644 (file)
@@ -17,7 +17,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include <PiDxe.h>\r
 \r
-#define PCI_RESOURCE_LESS         0xFFFFFFFFFFFFFFFE\r
+#define PCI_RESOURCE_LESS         0xFFFFFFFFFFFFFFFEULL\r
 \r
 typedef enum {\r
   TypeIo    = 0,\r