From abcdd98be3ea23843c23808bd6433fdcad1a0eb3 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Wed, 26 Oct 2016 18:29:41 +0200 Subject: EdkCompatibilityPkg/FrameworkHiiOnUefiHiiThunk: rebase to ARRAY_SIZE() Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Liming Gao Reviewed-by: Jordan Justen --- .../Compatibility/FrameworkHiiOnUefiHiiThunk/OpcodeCreation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/OpcodeCreation.c b/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/OpcodeCreation.c index dd07dfcf40..a3ddce9b44 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; -- cgit v1.2.3