From: Brian R Haug Date: Tue, 14 Jan 2020 08:56:47 +0000 (+0800) Subject: MdeModulePkg/Setup: Update opcode number variable type to UINTN X-Git-Tag: edk2-stable202002~231 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=94057f740267eb39cc9b3975f3971dd6d1d68182 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 Cc: Eric Dong Signed-off-by: Brian R Haug Reviewed-by: Dandan Bi Reviewed-by: Liming Gao Reviewed-by: Laszlo Ersek Reviewed-by: Eric Dong --- 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,15 +1,15 @@ /** @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; /** @@ -1106,12 +1106,12 @@ 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; @@ -1169,8 +1169,8 @@ ParseOpCodes ( QUESTION_DEFAULT *CurrentDefault; QUESTION_OPTION *CurrentOption; UINT8 Width; - UINT16 NumberOfStatement; - UINT16 NumberOfExpression; + UINTN NumberOfStatement; + UINTN NumberOfExpression; EFI_IMAGE_ID *ImageId; BOOLEAN SuppressForQuestion; BOOLEAN SuppressForOption;