From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web09.8260.1578992216102890499 for ; Tue, 14 Jan 2020 00:56:56 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: dandan.bi@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jan 2020 00:56:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,432,1571727600"; d="scan'208";a="372520649" Received: from unknown (HELO shwdeOpenPSI114.ccr.corp.intel.com) ([10.239.157.126]) by orsmga004.jf.intel.com with ESMTP; 14 Jan 2020 00:56:54 -0800 From: "Dandan Bi" To: devel@edk2.groups.io Cc: Brian R Haug , Liming Gao , Eric Dong Subject: [patch] MdeModulePkg/Setup: Update opcode number variable type to UINTN Date: Tue, 14 Jan 2020 16:56:47 +0800 Message-Id: <20200114085647.1796-1-dandan.bi@intel.com> X-Mailer: git-send-email 2.18.0.windows.1 From: Brian R Haug Update data type of variables which save the opcode numbers to UINTN, in case some configuration module has lots of configuration items. Cc: Liming Gao Cc: Eric Dong Signed-off-by: Brian R Haug Reviewed-by: Dandan Bi --- .../Universal/SetupBrowserDxe/IfrParse.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c index 891b95cf9f..edb6a0fc4c 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c @@ -1,17 +1,17 @@ /** @file Parser for IFR binary encoding. -Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.
+Copyright (c) 2007 - 2020, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "Setup.h" -UINT16 mStatementIndex; -UINT16 mExpressionOpCodeIndex; +UINTN mStatementIndex; +UINTN mExpressionOpCodeIndex; EFI_QUESTION_ID mUsedQuestionId; extern LIST_ENTRY gBrowserStorageList; /** Initialize Statement header members. @@ -1104,16 +1104,16 @@ IsUnKnownOpCode ( **/ VOID CountOpCodes ( IN FORM_BROWSER_FORMSET *FormSet, - IN OUT UINT16 *NumberOfStatement, - IN OUT UINT16 *NumberOfExpression + OUT UINTN *NumberOfStatement, + OUT UINTN *NumberOfExpression ) { - UINT16 StatementCount; - UINT16 ExpressionCount; + UINTN StatementCount; + UINTN ExpressionCount; UINT8 *OpCodeData; UINTN Offset; UINTN OpCodeLen; Offset = 0; @@ -1167,12 +1167,12 @@ ParseOpCodes ( FORMSET_STORAGE *Storage; FORMSET_DEFAULTSTORE *DefaultStore; QUESTION_DEFAULT *CurrentDefault; QUESTION_OPTION *CurrentOption; UINT8 Width; - UINT16 NumberOfStatement; - UINT16 NumberOfExpression; + UINTN NumberOfStatement; + UINTN NumberOfExpression; EFI_IMAGE_ID *ImageId; BOOLEAN SuppressForQuestion; BOOLEAN SuppressForOption; UINT16 DepthOfDisable; BOOLEAN OpCodeDisabled; -- 2.18.0.windows.1