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; diff --git a/runtime/src/memory/64bit_nix.c b/runtime/src/memory/64bit_nix.c index b76177e..9206cf0 100644 --- a/runtime/src/memory/64bit_nix.c +++ b/runtime/src/memory/64bit_nix.c @@ -30,7 +30,7 @@ expand_memory(void) // FIXME: max_pages = 0 => no limit. Issue #103. assert((sandbox->sandbox_size + local_sandbox_context_cache.linear_memory_size) / WASM_PAGE_SIZE < WASM_MAX_PAGES); - assert(sandbox->state = SANDBOX_RUNNING); + assert(sandbox->state == SANDBOX_RUNNING); // Remap the relevant wasm page to readable char *mem_as_chars = local_sandbox_context_cache.linear_memory_start; char *page_address = &mem_as_chars[local_sandbox_context_cache.linear_memory_size];