]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/Setup: Update opcode number variable type to UINTN
authorBrian R Haug <brian.r.haug@intel.com>
Tue, 14 Jan 2020 08:56:47 +0000 (16:56 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 15 Jan 2020 00:48:32 +0000 (00:48 +0000)
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>
MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c

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