diff options
author | Michael D Kinney <michael.d.kinney@intel.com> | 2021-11-08 08:10:56 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-11-11 22:46:59 +0000 |
commit | a92559671a3bbdbc154429cf66edf4f490bbe218 (patch) | |
tree | 8f0b33329a9a9424d813673b9d7e85e0b9d770a3 /OvmfPkg/XenPlatformPei | |
parent | 22c3b5a865ec800b7eecf43de336ad5e2d917a08 (diff) | |
download | edk2-a92559671a3bbdbc154429cf66edf4f490bbe218.tar.gz edk2-a92559671a3bbdbc154429cf66edf4f490bbe218.tar.bz2 edk2-a92559671a3bbdbc154429cf66edf4f490bbe218.zip |
OvmfPkg/Xen: Fix VS2019 build issues
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3722
Fix VS2019 NOOPT build issues related to converting
a larger integer value to a smaller integer value.
Cc: Anthony Perard <anthony.perard@citrix.com>
Cc: Julien Grall <julien@xen.org>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
Diffstat (limited to 'OvmfPkg/XenPlatformPei')
-rw-r--r-- | OvmfPkg/XenPlatformPei/MemDetect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OvmfPkg/XenPlatformPei/MemDetect.c b/OvmfPkg/XenPlatformPei/MemDetect.c index 1970b631c9..fa1be888d6 100644 --- a/OvmfPkg/XenPlatformPei/MemDetect.c +++ b/OvmfPkg/XenPlatformPei/MemDetect.c @@ -154,7 +154,7 @@ GetSystemMemorySizeBelow4gb ( HighestAddress = GetHighestSystemMemoryAddress (TRUE);
ASSERT (HighestAddress > 0 && HighestAddress <= BASE_4GB);
- return HighestAddress;
+ return (UINT32)HighestAddress;
}
//
|