From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6360F82005 for ; Tue, 7 Feb 2017 21:57:02 -0800 (PST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP; 07 Feb 2017 21:57:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,346,1477983600"; d="scan'208";a="56449175" Received: from shwdeopenpsi114.ccr.corp.intel.com ([10.239.157.135]) by orsmga004.jf.intel.com with ESMTP; 07 Feb 2017 21:57:00 -0800 From: Dandan Bi To: edk2-devel@lists.01.org Cc: Jordan Justen , Laszlo Ersek , Liming Gao Date: Wed, 8 Feb 2017 13:55:52 +0800 Message-Id: <1486533352-214148-1-git-send-email-dandan.bi@intel.com> X-Mailer: git-send-email 1.9.5.msysgit.1 Subject: [patch] OvmfPkg/QemuBootOrderLib: Fix NOOPT build failure X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2017 05:57:02 -0000 Cc: Jordan Justen Cc: Laszlo Ersek Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi --- OvmfPkg/Library/QemuBootOrderLib/ExtraRootBusMap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OvmfPkg/Library/QemuBootOrderLib/ExtraRootBusMap.c b/OvmfPkg/Library/QemuBootOrderLib/ExtraRootBusMap.c index ec42214..1bb89d4 100644 --- a/OvmfPkg/Library/QemuBootOrderLib/ExtraRootBusMap.c +++ b/OvmfPkg/Library/QemuBootOrderLib/ExtraRootBusMap.c @@ -306,8 +306,8 @@ MapRootBusPosToBusNr ( return EFI_INVALID_PARAMETER; } if (RootBusPos > ExtraRootBusMap->Count) { return EFI_NOT_FOUND; } - *RootBusNr = ExtraRootBusMap->BusNumbers[RootBusPos - 1]; + *RootBusNr = ExtraRootBusMap->BusNumbers[(UINT32)RootBusPos - 1]; return EFI_SUCCESS; } -- 1.9.5.msysgit.1