bugfix with large switch statements and spelling fix
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Sat, 18 Feb 2023 04:38:50 +0000 (22:38 -0600)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Sat, 18 Feb 2023 04:38:50 +0000 (22:38 -0600)
compiler/src/wasm_emit.c
core/container/iter.onyx

index 1a9c7065fbc3e2b651496212f8ce360b11dd74a5..c0d3e9dfa49a27f66c9032da7376167eb9b4af3b 100644 (file)
@@ -4611,7 +4611,7 @@ OnyxWasmModule onyx_wasm_module_create(bh_allocator alloc) {
     };
 
     bh_arena* eid = bh_alloc(global_heap_allocator, sizeof(bh_arena));
-    bh_arena_init(eid, global_heap_allocator, 8196);
+    bh_arena_init(eid, global_heap_allocator, 16 * 1024 * 1024);
     module.extended_instr_data = eid;
     module.extended_instr_alloc = bh_arena_allocator(eid);
 
index 5cabaf3a3496c97d866e536daa0f79b96e334a1a..0488512e123af59d81d0eb5911f77de6dbe22bf1 100644 (file)
@@ -29,7 +29,7 @@ use core.intrinsics.types {type_is_struct}
 
 
 //
-// Thge standard function to convert something to an Iterator.
+// The standard function to convert something to an Iterator.
 // For-loops currently do not use this function to determine
 // how to iterate over something unknown, but that could be
 // a feature down the line.