From: Brendan Hansen Date: Mon, 19 Jul 2021 23:48:47 +0000 (-0500) Subject: this shouldn't work... X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=1444a2584043e710039d91a776154f49d524adee;p=onyx.git this shouldn't work... --- diff --git a/src/onyxwasm_type_table.c b/src/onyxwasm_type_table.c index 1343f02c..86b22959 100644 --- a/src/onyxwasm_type_table.c +++ b/src/onyxwasm_type_table.c @@ -10,7 +10,7 @@ u64 build_type_table(OnyxWasmModule* module) { #define PATCH (bh_arr_push(base_patch_locations, table_buffer.length)) // This is the data behind the "type_table" slice in type_info.onyx - u32 type_count = bh_arr_length(type_map.entries) + 1; + u32 type_count = bh_arr_length(type_map.entries) + 2; u64* table_info = bh_alloc_array(global_heap_allocator, u64, type_count + 4); // HACK bh_buffer table_buffer;