OcDeviceMiscLib: Fix MSVC warning

This commit is contained in:
vit9696 2021-10-12 03:11:30 +03:00
parent 08c0020eb3
commit 5b42335e5c

View File

@ -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);