]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/Variable/RuntimeDxeUnitTest: Fix 32-bit GCC builds
authorMichael D Kinney <michael.d.kinney@intel.com>
Tue, 2 Nov 2021 16:15:26 +0000 (09:15 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 5 Nov 2021 19:44:11 +0000 (19:44 +0000)
commit4050c873b51f59cb6fcd7665029f931e727e0e4f
treeb7db9d6a123b338006b1f29e6270002b85acafe8
parent15e635d1b5f58461a5d8a03fba026e620b46e59e
MdeModulePkg/Variable/RuntimeDxeUnitTest: Fix 32-bit GCC builds

When using will_return() on a pointer value, it must be
cast to UINTN to be compatible with 32-bit GCC builds.
This uses the same approach in samples provided in the
UnitTestFramworkPkg when passing pointer values to
UT_ASSERT_EQUAL().

Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Bret Barkelew <bret.barkelew@microsoft.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
MdeModulePkg/Universal/Variable/RuntimeDxe/RuntimeDxeUnitTest/VariableLockRequestToLockUnitTest.c