diff options
author | Liming Gao <liming.gao@intel.com> | 2020-03-12 12:30:08 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-03-17 00:28:45 +0000 |
commit | a2c3bf1f2f991614ac97ddcf4b31742e4366c3a5 (patch) | |
tree | 825ce92e3ba900adc0a0c4936f08661b1efdb436 /OvmfPkg/Library/X86QemuLoadImageLib | |
parent | 799d88c1bae7978da23727df94b16f37bd1521f4 (diff) | |
download | edk2-a2c3bf1f2f991614ac97ddcf4b31742e4366c3a5.tar.gz edk2-a2c3bf1f2f991614ac97ddcf4b31742e4366c3a5.tar.bz2 edk2-a2c3bf1f2f991614ac97ddcf4b31742e4366c3a5.zip |
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>
Diffstat (limited to 'OvmfPkg/Library/X86QemuLoadImageLib')
-rw-r--r-- | OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c b/OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c index 1868c9fcaf..e52ec668f3 100644 --- a/OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c +++ b/OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c @@ -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);
|