Skip to content

Commit 1a61cb7

Browse files
authored
Appease GCC -Wformat (#3783)
I'm not sure we want to use C99 %tu here. While C99 %zu is more widely used in WAMR, %tu is rare (if any) and I'm not sure if it's ubiquitously implemented in platforms we support.
1 parent cd47438 commit 1a61cb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/shared/mem-alloc/ems/ems_alloc.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -992,8 +992,8 @@ gci_dump(gc_heap_t *heap)
992992

993993
os_printf("#%d %08" PRIx32 " %" PRIx32 " %d %d"
994994
" %c %" PRId32 "\n",
995-
i, (int32)((char *)cur - (char *)heap->base_addr), (int32)ut,
996-
p, mark, inuse, (int32)hmu_obj_size(size));
995+
i, (uint32)((char *)cur - (char *)heap->base_addr),
996+
(uint32)ut, p, mark, inuse, (int32)hmu_obj_size(size));
997997
#if BH_ENABLE_GC_VERIFY != 0
998998
if (inuse == 'V') {
999999
gc_object_prefix_t *prefix = (gc_object_prefix_t *)(cur + 1);

0 commit comments

Comments
 (0)