From c00145de58411c385f96b8b75a3e5dc3d0edacb1 Mon Sep 17 00:00:00 2001 From: Oleksandr Byelkin Date: Thu, 17 Oct 2024 08:03:56 +0200 Subject: [PATCH] fix signed/unsigned and size_t issue --- unittest/mysys/stack_allocation-t.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unittest/mysys/stack_allocation-t.c b/unittest/mysys/stack_allocation-t.c index 911bbd8de7a..2b044c80f42 100644 --- a/unittest/mysys/stack_allocation-t.c +++ b/unittest/mysys/stack_allocation-t.c @@ -77,10 +77,10 @@ void test_stack_detection(int stage, size_t stack_allocation) stack_allocation_total= 0; res= test_stack(stack_start, stack_end, 1, stack_allocation); if (!res) - ok(1, "%ld bytes allocated on stack of size %ld with %ld alloc size", - stack_allocation_total, + ok(1, "%llu bytes allocated on stack of size %ld with %lu alloc size", + (unsigned long long) stack_allocation_total, (long) available_stack_size(stack_start, stack_end), - (long) stack_allocation); + (unsigned long) stack_allocation); else ok(0, "stack checking failed"); }