]> git.proxmox.com Git - mirror_edk2.git/commit - StandaloneMmPkg/Core/StandaloneMmCore.c
StandaloneMmPkg/StandaloneMmCore: Fix compiler warning
authorMichael Kubacki <michael.kubacki@microsoft.com>
Thu, 11 Feb 2021 01:04:20 +0000 (17:04 -0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 11 Feb 2021 08:52:04 +0000 (08:52 +0000)
commit1d27e58e401faea284309039f3962cb3cb4549fc
tree6c44eb5ef8995fe3f79c96624e01232705b80793
parent641866ac42e41963105a8c42064e92686a001a71
StandaloneMmPkg/StandaloneMmCore: Fix compiler warning

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

Fixes the following compiler warning in VS2019 by changing defining
the MmramRangeCount variable to be UINTN and type casting prior
to value assignment.

\edk2\StandaloneMmPkg\Core\StandaloneMmCore.c(570): error C2220:
  the following warning is treated as an error
\edk2\StandaloneMmPkg\Core\StandaloneMmCore.c(570): warning C4244:
  '=': conversion from 'UINT64' to 'UINT32', possible loss of data

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
StandaloneMmPkg/Core/StandaloneMmCore.c