From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (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 5D86B8212F for ; Wed, 8 Feb 2017 17:41:16 -0800 (PST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP; 08 Feb 2017 17:41:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,349,1484035200"; d="scan'208";a="56757796" Received: from shwdeopenpsi114.ccr.corp.intel.com ([10.239.157.135]) by orsmga004.jf.intel.com with ESMTP; 08 Feb 2017 17:41:15 -0800 From: Dandan Bi To: edk2-devel@lists.01.org Cc: Jordan Justen , Laszlo Ersek , Liming Gao Date: Thu, 9 Feb 2017 09:40:33 +0800 Message-Id: <1486604433-226592-1-git-send-email-dandan.bi@intel.com> X-Mailer: git-send-email 1.9.5.msysgit.1 Subject: [PATCH v2] 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: Thu, 09 Feb 2017 01:41:16 -0000 This patch is to fix the IA32/NOOPT/VS Toolchain build failure. Cc: Jordan Justen Cc: Laszlo Ersek Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi Notes: V2: Change the cast type form UINT32 to UINTN. Add commit message to cover the impacted Arch/Toolchain. --- 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..70ba161 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[(UINTN)RootBusPos - 1]; return EFI_SUCCESS; } -- 1.9.5.msysgit.1