diff options
author | Dandan Bi <dandan.bi@intel.com> | 2017-02-08 13:39:40 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2017-02-10 09:59:29 +0800 |
commit | 8d127a5a3a23d960644d1bd78891ae7d55b66544 (patch) | |
tree | b1e464ed817bdc52ea176200a83812590b859000 /OvmfPkg | |
parent | 41ccec58e07376fe3086d3fb4cf6290c53ca2303 (diff) | |
download | edk2-platforms-8d127a5a3a23d960644d1bd78891ae7d55b66544.tar.xz |
OvmfPkg/QemuBootOrderLib: Fix NOOPT build failure
This patch is to fix the IA32/NOOPT/VS Toolchain build failure.
The VS2015 failure log as below:
QemuBootOrderLib.lib(ExtraRootBusMap.obj) :
error LNK2001: unresolved external symbol __allmul
s:\..\Build\OvmfIa32\NOOPT_VS2015\IA32\MdeModulePkg\
Universal\BdsDxe\BdsDxe\DEBUG\BdsDxe.dll :
fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077:
'"C:\Program Files\Microsoft Visual Studio 14.0\Vc\bin\link.exe"' :
return code '0x460'
Stop.
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'OvmfPkg')
-rw-r--r-- | OvmfPkg/Library/QemuBootOrderLib/ExtraRootBusMap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OvmfPkg/Library/QemuBootOrderLib/ExtraRootBusMap.c b/OvmfPkg/Library/QemuBootOrderLib/ExtraRootBusMap.c index ec422145c4..70ba1619d1 100644 --- a/OvmfPkg/Library/QemuBootOrderLib/ExtraRootBusMap.c +++ b/OvmfPkg/Library/QemuBootOrderLib/ExtraRootBusMap.c @@ -308,6 +308,6 @@ MapRootBusPosToBusNr ( if (RootBusPos > ExtraRootBusMap->Count) {
return EFI_NOT_FOUND;
}
- *RootBusNr = ExtraRootBusMap->BusNumbers[RootBusPos - 1];
+ *RootBusNr = ExtraRootBusMap->BusNumbers[(UINTN)RootBusPos - 1];
return EFI_SUCCESS;
}
|