OvmfPkg/Bhyve/PlatformPei: Fix VS2019 X64 NOOPT build issue

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3724

Add typecast to fix build error with VS2019 X64 NOOPT converting
a UINT64 value to UINT32 value.

Cc: Rebecca Cran <rebecca@bsdio.com>
Cc: Peter Grehan <grehan@freebsd.org>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Rebecca Cran <rebecca@bsdio.com>
Acked-by: Peter Grehan <grehan@freebsd.org>
This commit is contained in:
Michael D Kinney 2021-11-08 19:13:08 -08:00 committed by mergify[bot]
parent a92559671a
commit 4c495e5e3d
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ MemMapInitialization (
ASSERT (PciExBarBase <= MAX_UINT32 - SIZE_256MB);
PciBase = (UINT32)(PciExBarBase + SIZE_256MB);
} else {
PciBase = PcdGet64 (PcdPciMmio32Base);
PciBase = (UINT32)PcdGet64 (PcdPciMmio32Base);
if (PciBase == 0)
PciBase = (TopOfLowRam < BASE_2GB) ? BASE_2GB : TopOfLowRam;
}