From b47ef9c1885ce8205577c4bca92311814d8031f3 Mon Sep 17 00:00:00 2001 From: KaffeeMaus Date: Fri, 26 Jan 2024 11:34:09 +0100 Subject: [PATCH] fixed calculation --- src/test/c/Georg/test_tictactoe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/c/Georg/test_tictactoe.c b/src/test/c/Georg/test_tictactoe.c index 7e40ecc..1842e5a 100644 --- a/src/test/c/Georg/test_tictactoe.c +++ b/src/test/c/Georg/test_tictactoe.c @@ -82,7 +82,7 @@ void test_createCommandlist(void){ // act commands = createCommands(); - size_t arraySize = sizeof(commands) / sizeof(commands[0]); + size_t arraySize = sizeof(*commands) / sizeof(commands[0]); for (size_t i = 0; i < arraySize; i++) { TEST_ASSERT_EQUAL_INT( 1, commands[i].fun() ); }