mirror of https://github.com/acidanthera/audk.git
OvmfPkg: Fix build failure with VS2015 tool chain
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2582 warning C4244: '=': conversion from 'UINTN' to 'UINT32', possible loss of data With this fix, OvmfIa32, OvmfX64 and OvmfIa32X64 can pass build. Cc: Laszlo Ersek <lersek@redhat.com> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
799d88c1ba
commit
a2c3bf1f2f
|
@ -384,7 +384,7 @@ QemuLoadKernelImage (
|
|||
//
|
||||
// Drop the terminating NUL, convert to UTF-16.
|
||||
//
|
||||
KernelLoadedImage->LoadOptionsSize = (CommandLineSize - 1) * 2;
|
||||
KernelLoadedImage->LoadOptionsSize = (UINT32) ((CommandLineSize - 1) * 2);
|
||||
}
|
||||
|
||||
QemuFwCfgSelectItem (QemuFwCfgItemInitrdSize);
|
||||
|
|
Loading…
Reference in New Issue