mirror of https://github.com/acidanthera/audk.git
OvmfPkg BasePciCapLib: Fix VS build failure
Fix VS warning C4244: 'function': conversion from 'UINT32' to 'UINT16', possible loss of data. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> [lersek@redhat.com: remove whitespace after casts] Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
d272449d9e
commit
2d0c6692ee
|
@ -613,8 +613,8 @@ PciCapListInit (
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = InsertPciCap (OutCapList, CapHdrOffsets, PciCapExtended,
|
Status = InsertPciCap (OutCapList, CapHdrOffsets, PciCapExtended,
|
||||||
ExtendedCapHdr.CapabilityId, ExtendedCapHdrOffset,
|
(UINT16)ExtendedCapHdr.CapabilityId, ExtendedCapHdrOffset,
|
||||||
ExtendedCapHdr.CapabilityVersion);
|
(UINT8)ExtendedCapHdr.CapabilityVersion);
|
||||||
if (RETURN_ERROR (Status)) {
|
if (RETURN_ERROR (Status)) {
|
||||||
goto FreeCapHdrOffsets;
|
goto FreeCapHdrOffsets;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue