Message ID | 20161026190504.9888-13-lersek@redhat.com |
---|---|
State | Accepted |
Commit | abcdd98be3ea23843c23808bd6433fdcad1a0eb3 |
Headers | show |
diff --git a/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/OpcodeCreation.c b/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/OpcodeCreation.c index dd07dfcf40cf..a3ddce9b44ec 100644 --- a/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/OpcodeCreation.c +++ b/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/OpcodeCreation.c @@ -51,7 +51,7 @@ QuestionOpFwToUefi ( { UINTN Index; - for (Index = 0; Index < sizeof (QuestionOpcodeMap) / sizeof (QuestionOpcodeMap[0]); Index++) { + for (Index = 0; Index < ARRAY_SIZE (QuestionOpcodeMap); Index++) { if (FwOp == QuestionOpcodeMap[Index].FrameworkIfrOp) { *UefiOp = QuestionOpcodeMap[Index].UefiIfrOp; return EFI_SUCCESS;
Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> --- EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/OpcodeCreation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel