From: Michael Stefaniuc Subject: [PATCH] gdiplus/tests: Use the ARRAY_SIZE() macro Message-Id: <20200921205233.137684-1-mstefani@winehq.org> Date: Mon, 21 Sep 2020 22:52:29 +0200 Signed-off-by: Michael Stefaniuc --- dlls/gdiplus/tests/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/gdiplus/tests/font.c b/dlls/gdiplus/tests/font.c index b762f7c45ff..af90152aa26 100644 --- a/dlls/gdiplus/tests/font.c +++ b/dlls/gdiplus/tests/font.c @@ -335,7 +335,7 @@ static void test_logfont(void) memset(&lfa, 0, sizeof(lfa)); lstrcpyA(lfa.lfFaceName, "Times New Roman"); - for (i = 0; i < sizeof(test_sizes)/sizeof(test_sizes[0]); ++i) + for (i = 0; i < ARRAY_SIZE(test_sizes); ++i) { lfa.lfHeight = test_sizes[i].input; -- 2.26.2