From c7df0249a29338f1f245b7f293f5ab8b03f963bf Mon Sep 17 00:00:00 2001 From: DL6ER Date: Thu, 11 Sep 2025 20:26:10 +0200 Subject: [PATCH] Fix timer test Signed-off-by: DL6ER --- unittest/timertest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unittest/timertest.c b/unittest/timertest.c index 17716d16..425e5ad8 100644 --- a/unittest/timertest.c +++ b/unittest/timertest.c @@ -158,7 +158,7 @@ END_TEST START_TEST(test_timer_oneshot_by_callback_retval) { struct mg_context ctx; - int c[TIMERS_IN_TEST * 2]; + ptrdiff_t c[TIMERS_IN_TEST * 2]; memset(&ctx, 0, sizeof(ctx)); memset(c, 0, sizeof(c)); @@ -212,7 +212,7 @@ END_TEST START_TEST(test_timer_oneshot_by_timer_add) { struct mg_context ctx; - int c[TIMERS_IN_TEST * 2]; + ptrdiff_t c[TIMERS_IN_TEST * 2]; memset(&ctx, 0, sizeof(ctx)); memset(c, 0, sizeof(c)); @@ -266,7 +266,7 @@ END_TEST START_TEST(test_timer_mixed) { struct mg_context ctx; - int c[TIMERS_IN_TEST]; + ptrdiff_t c[TIMERS_IN_TEST]; memset(&ctx, 0, sizeof(ctx)); memset(c, 0, sizeof(c)); -- 2.43.0