From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (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 CC02F81F68 for ; Tue, 7 Feb 2017 22:48:37 -0800 (PST) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP; 07 Feb 2017 22:48:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,346,1477983600"; d="scan'208";a="62139255" Received: from jsherry-mobl2.amr.corp.intel.com (HELO localhost) ([10.252.133.172]) by orsmga005.jf.intel.com with ESMTP; 07 Feb 2017 22:48:37 -0800 MIME-Version: 1.0 To: Dandan Bi , edk2-devel@lists.01.org Message-ID: <148653651702.19501.2422588150276024393@jljusten-ivb> From: Jordan Justen In-Reply-To: <1486533352-214148-1-git-send-email-dandan.bi@intel.com> Cc: Laszlo Ersek , Liming Gao References: <1486533352-214148-1-git-send-email-dandan.bi@intel.com> User-Agent: alot/0.5.1 Date: Tue, 07 Feb 2017 22:48:37 -0800 Subject: Re: [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 06:48:37 -0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On 2017-02-07 21:55:52, Dandan Bi wrote: > 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 =3D ExtraRootBusMap->BusNumbers[RootBusPos - 1]; > + *RootBusNr =3D ExtraRootBusMap->BusNumbers[(UINT32)RootBusPos - 1]; Is this failing on IA32? If so, think UINTN would be better. You might also want to add the impacted toolchain and arch to the commit message. -Jordan