fix: Correct assert typo

main
Sean McBride 4 years ago
parent 003b57a76c
commit 2c13e111fa

@ -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