]> git.feebdaed.xyz Git - 0xmirror/civetweb.git/commitdiff
Fix timer test
authorDL6ER <dl6er@dl6er.de>
Thu, 11 Sep 2025 18:26:10 +0000 (20:26 +0200)
committerDL6ER <dl6er@dl6er.de>
Thu, 11 Sep 2025 18:26:10 +0000 (20:26 +0200)
Signed-off-by: DL6ER <dl6er@dl6er.de>
unittest/timertest.c

index 17716d1628525f8699740aa94251fad3cf0d34c9..425e5ad8eb9d84f7e687270cb2e764a13e775864 100644 (file)
@@ -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));