From 003b57a76c8116bba67f32a2f3a63c22dda88205 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Fri, 16 Apr 2021 10:40:40 -0400 Subject: [PATCH] fix: explicitly convert void* --- runtime/src/libc/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/libc/syscall.c b/runtime/src/libc/syscall.c index c389b95..7fca22c 100644 --- a/runtime/src/libc/syscall.c +++ b/runtime/src/libc/syscall.c @@ -488,7 +488,7 @@ wasm_writev(int32_t fd, int32_t iov_offset, int32_t iovcnt) int32_t len = iov[i].len; void * ptr = worker_thread_get_memory_ptr_void(iov[i].base_offset, len); - printf("%.*s", len, ptr); + printf("%.*s", len, (char *)ptr); sum += len; } return sum;