X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=DuetPkg%2FPciRootBridgeNoEnumerationDxe%2FIa32%2FPcatIo.c;fp=DuetPkg%2FPciRootBridgeNoEnumerationDxe%2FIa32%2FPcatIo.c;h=d479e7f9fcce85c5f5b49a75a3cb17fa687fa89e;hb=3d78c020d22023d35d27b48817d73ff31a361ac7;hp=fbfc2fadef5c3e586a94353c205c959b6e6cfc38;hpb=055c829c4212f12614ad80dcd161a2b4f5cf6713;p=mirror_edk2.git diff --git a/DuetPkg/PciRootBridgeNoEnumerationDxe/Ia32/PcatIo.c b/DuetPkg/PciRootBridgeNoEnumerationDxe/Ia32/PcatIo.c index fbfc2fadef..d479e7f9fc 100644 --- a/DuetPkg/PciRootBridgeNoEnumerationDxe/Ia32/PcatIo.c +++ b/DuetPkg/PciRootBridgeNoEnumerationDxe/Ia32/PcatIo.c @@ -102,7 +102,7 @@ PcatRootBridgeIoPciRW ( UINT64 PciExpressRegAddr; BOOLEAN UsePciExpressAccess; - if (Width < 0 || Width >= EfiPciWidthMaximum) { + if ((UINT32)Width >= EfiPciWidthMaximum) { return EFI_INVALID_PARAMETER; }