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:
Liming Gao 2018-05-29 13:04:16 +08:00 committed by Laszlo Ersek
parent d272449d9e
commit 2d0c6692ee
1 changed files with 2 additions and 2 deletions

View File

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