summaryrefslogtreecommitdiff
path: root/test/spec-wasm2c-prefix.c
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2023-01-12 22:38:39 -0800
committerGitHub <noreply@github.com>2023-01-12 22:38:39 -0800
commit400fa0f5210a68a610db878a39237be1c6591099 (patch)
tree8bd3a24b69a908edc4d943af47bbc328e3d998c7 /test/spec-wasm2c-prefix.c
parentce775b0b55a29665956b021074d9eec9d2fa870a (diff)
downloadwabt-400fa0f5210a68a610db878a39237be1c6591099.tar.gz
wabt-400fa0f5210a68a610db878a39237be1c6591099.tar.bz2
wabt-400fa0f5210a68a610db878a39237be1c6591099.zip
wasm2c: Initial implementation of memory64 (#2086)
Note, there are still some issues here that needs to be resolved, mostly about memory sandboxing (bounds checking). Since this is still experimental I've also added a `--experimental` flag to wasm2c that is required in addition to passing `--enable-memory64`.
Diffstat (limited to 'test/spec-wasm2c-prefix.c')
-rw-r--r--test/spec-wasm2c-prefix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/spec-wasm2c-prefix.c b/test/spec-wasm2c-prefix.c
index 1e81fd78..b9ba0934 100644
--- a/test/spec-wasm2c-prefix.c
+++ b/test/spec-wasm2c-prefix.c
@@ -321,7 +321,7 @@ double* Z_spectestZ_global_f64(Z_spectest_instance_t* instance) {
static void init_spectest_module(Z_spectest_instance_t* instance) {
instance->spectest_global_i32 = 666;
instance->spectest_global_i64 = 666l;
- wasm_rt_allocate_memory(&instance->spectest_memory, 1, 2);
+ wasm_rt_allocate_memory(&instance->spectest_memory, 1, 2, false);
wasm_rt_allocate_funcref_table(&instance->spectest_table, 10, 20);
}