summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/PlatformPei
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2016-07-14 17:59:44 +0200
committerLaszlo Ersek <lersek@redhat.com>2016-07-18 19:23:37 +0200
commitfc3f005aee72aa5c3e1cf825381f8c3755b02101 (patch)
treee5ff6cfb200a951f12cdb311ca435f77722a15e9 /OvmfPkg/PlatformPei
parentf982bb8d627ed37ee14b9f0b8bc6a0b3a22c75e5 (diff)
downloadedk2-fc3f005aee72aa5c3e1cf825381f8c3755b02101.tar.gz
edk2-fc3f005aee72aa5c3e1cf825381f8c3755b02101.tar.bz2
edk2-fc3f005aee72aa5c3e1cf825381f8c3755b02101.zip
OvmfPkg/PlatformPei: silence X64 VS2015x86 warning
VS2015x86 reports the following warning for "OvmfPkg/PlatformPei/MemDetect.c": > MemDetect.c(357): error C2220: warning treated as error - no 'object' > file generated > MemDetect.c(357): warning C4244: '=': conversion from 'UINT64' to > 'UINT32', possible loss of data LowerMemorySize is first assigned from GetSystemMemorySizeBelow4gb(), which returns UINT32. Change the type of LowerMemorySize accordingly. Cc: Jordan Justen <jordan.l.justen@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'OvmfPkg/PlatformPei')
-rw-r--r--OvmfPkg/PlatformPei/MemDetect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OvmfPkg/PlatformPei/MemDetect.c b/OvmfPkg/PlatformPei/MemDetect.c
index 9ee4b59623..8f66412763 100644
--- a/OvmfPkg/PlatformPei/MemDetect.c
+++ b/OvmfPkg/PlatformPei/MemDetect.c
@@ -335,7 +335,7 @@ PublishPeiMemory (
EFI_STATUS Status;
EFI_PHYSICAL_ADDRESS MemoryBase;
UINT64 MemorySize;
- UINT64 LowerMemorySize;
+ UINT32 LowerMemorySize;
UINT32 PeiMemoryCap;
LowerMemorySize = GetSystemMemorySizeBelow4gb ();