Skip to content
This repository was archived by the owner on Mar 11, 2019. It is now read-only.

Commit 5256e7f

Browse files
committed
Fix compilation for ARM, again
1 parent e1e14f6 commit 5256e7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/panic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bool tinygo_print_stackitem(goroutine_t *r, uint32_t *pc_top, uint32_t *pc_call,
3838
printf("\?\?\?(...)");
3939
}
4040
printf(" at %p\n", pc_top);
41-
printf("\t%p (+0x%lx, stack usage: %lu/%u)\n", pc_call - 1, ((pc_call - pc_top - 1) * sizeof(func)), (STACK_SIZE-sp*sizeof(uintptr_t)), STACK_SIZE);
41+
printf("\t%p (+0x%tx, stack usage: %ld/%u)\n", pc_call - 1, ((pc_call - pc_top - 1) * sizeof(func)), (long)(STACK_SIZE-sp*sizeof(uintptr_t)), STACK_SIZE);
4242
return found_root;
4343
}
4444

0 commit comments

Comments
 (0)