1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

fix signed/unsigned and size_t issue

This commit is contained in:
Oleksandr Byelkin
2024-10-17 08:03:56 +02:00
parent 6b436cba01
commit c00145de58

View File

@@ -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");
}