diff --git a/Library/OcDeviceMiscLib/SetResizableBar.c b/Library/OcDeviceMiscLib/SetResizableBar.c index 6809bb3f..ccba0b55 100644 --- a/Library/OcDeviceMiscLib/SetResizableBar.c +++ b/Library/OcDeviceMiscLib/SetResizableBar.c @@ -217,7 +217,7 @@ SetResizableBarOnDevice ( // If requested BAR size is too low, choose the lowest available BAR size. // if (NewCapabilities == 0 - && Entries[Index].ResizableBarControl.Bits.BarSize > Size) { + && Entries[Index].ResizableBarControl.Bits.BarSize > (UINT32) Size) { Bit = LowBitSet64 (Capabilities); } else { Bit = HighBitSet64 (NewCapabilities);