Merge pull request #192 from gwsystems/fix-compiler-errors

fix-compiler-errors
main
Sean McBride 4 years ago committed by GitHub
commit 92b8684a62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -488,7 +488,7 @@ wasm_writev(int32_t fd, int32_t iov_offset, int32_t iovcnt)
int32_t len = iov[i].len; int32_t len = iov[i].len;
void * ptr = worker_thread_get_memory_ptr_void(iov[i].base_offset, 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; sum += len;
} }
return sum; return sum;

@ -30,7 +30,7 @@ expand_memory(void)
// FIXME: max_pages = 0 => no limit. Issue #103. // FIXME: max_pages = 0 => no limit. Issue #103.
assert((sandbox->sandbox_size + local_sandbox_context_cache.linear_memory_size) / WASM_PAGE_SIZE assert((sandbox->sandbox_size + local_sandbox_context_cache.linear_memory_size) / WASM_PAGE_SIZE
< WASM_MAX_PAGES); < WASM_MAX_PAGES);
assert(sandbox->state = SANDBOX_RUNNING); assert(sandbox->state == SANDBOX_RUNNING);
// Remap the relevant wasm page to readable // Remap the relevant wasm page to readable
char *mem_as_chars = local_sandbox_context_cache.linear_memory_start; char *mem_as_chars = local_sandbox_context_cache.linear_memory_start;
char *page_address = &mem_as_chars[local_sandbox_context_cache.linear_memory_size]; char *page_address = &mem_as_chars[local_sandbox_context_cache.linear_memory_size];

Loading…
Cancel
Save