From 0790cae660a6602697c63cf8b4ada78aa3661f82 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Mon, 19 Oct 2026 13:08:25 +0200 Subject: zilch: export sizeof of shared structs --- src/zilch/App/object-store.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/zilch/App/object-store.js') diff --git a/src/zilch/App/object-store.js b/src/zilch/App/object-store.js index 3566c89..33879c6 100644 --- a/src/zilch/App/object-store.js +++ b/src/zilch/App/object-store.js @@ -160,17 +160,17 @@ class ObjectStore { for (let i = 0; i < length; ++i) { const method = ObjectStore.decodeCall(calls_view, offset.call); - offset.call += 8; + offset.call += wasm.size_of.Call; let args = new Array(method.num_args).fill().map(_ => { const value = ObjectStore.decodeValue(values_view, offset.value, results); - offset.value += 16; + offset.value += wasm.size_of.Value; return value; }); const result = method.kind(...args); const result_ptr = results_view.getUint32(offset.result, true); - offset.result += 4; + offset.result += wasm.size_of.Ptr; results.push(result); -- cgit v1.2.3-70-g09d2