diff options
Diffstat (limited to 'src/interp/interp-wasm-c-api.cc')
-rw-r--r-- | src/interp/interp-wasm-c-api.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/interp/interp-wasm-c-api.cc b/src/interp/interp-wasm-c-api.cc index cfa8a897..bb4598a4 100644 --- a/src/interp/interp-wasm-c-api.cc +++ b/src/interp/interp-wasm-c-api.cc @@ -160,7 +160,10 @@ struct wasm_tabletype_t : wasm_externtype_t { struct wasm_memorytype_t : wasm_externtype_t { wasm_memorytype_t(const wasm_limits_t* limits) - : wasm_externtype_t{std::make_unique<MemoryType>(ToWabtLimits(*limits))}, + : wasm_externtype_t{std::make_unique<MemoryType>( + ToWabtLimits(*limits), + WABT_DEFAULT_PAGE_SIZE)}, // wasm-c-api doesn't support + // custom-page-sizes yet limits{*limits} {} wasm_memorytype_t(MemoryType mt) |