MdeModulePkg/Setup: Update opcode number variable type to UINTN

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 <liming.gao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Signed-off-by: Brian R Haug <brian.r.haug@intel.com>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
This commit is contained in:
Brian R Haug 2020-01-14 16:56:47 +08:00 committed by mergify[bot]
parent a6a835bdb1
commit 94057f7402
1 changed files with 9 additions and 9 deletions

View File

@ -1,15 +1,15 @@
/** @file /** @file
Parser for IFR binary encoding. Parser for IFR binary encoding.
Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.<BR> Copyright (c) 2007 - 2020, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent SPDX-License-Identifier: BSD-2-Clause-Patent
**/ **/
#include "Setup.h" #include "Setup.h"
UINT16 mStatementIndex; UINTN mStatementIndex;
UINT16 mExpressionOpCodeIndex; UINTN mExpressionOpCodeIndex;
EFI_QUESTION_ID mUsedQuestionId; EFI_QUESTION_ID mUsedQuestionId;
extern LIST_ENTRY gBrowserStorageList; extern LIST_ENTRY gBrowserStorageList;
/** /**
@ -1106,12 +1106,12 @@ IsUnKnownOpCode (
VOID VOID
CountOpCodes ( CountOpCodes (
IN FORM_BROWSER_FORMSET *FormSet, IN FORM_BROWSER_FORMSET *FormSet,
IN OUT UINT16 *NumberOfStatement, OUT UINTN *NumberOfStatement,
IN OUT UINT16 *NumberOfExpression OUT UINTN *NumberOfExpression
) )
{ {
UINT16 StatementCount; UINTN StatementCount;
UINT16 ExpressionCount; UINTN ExpressionCount;
UINT8 *OpCodeData; UINT8 *OpCodeData;
UINTN Offset; UINTN Offset;
UINTN OpCodeLen; UINTN OpCodeLen;
@ -1169,8 +1169,8 @@ ParseOpCodes (
QUESTION_DEFAULT *CurrentDefault; QUESTION_DEFAULT *CurrentDefault;
QUESTION_OPTION *CurrentOption; QUESTION_OPTION *CurrentOption;
UINT8 Width; UINT8 Width;
UINT16 NumberOfStatement; UINTN NumberOfStatement;
UINT16 NumberOfExpression; UINTN NumberOfExpression;
EFI_IMAGE_ID *ImageId; EFI_IMAGE_ID *ImageId;
BOOLEAN SuppressForQuestion; BOOLEAN SuppressForQuestion;
BOOLEAN SuppressForOption; BOOLEAN SuppressForOption;