summaryrefslogtreecommitdiff
path: root/wasm2c/examples/rot13/main.c
diff options
context:
space:
mode:
authorKeith Winstein <keithw@cs.stanford.edu>2023-01-22 13:43:15 -0800
committerGitHub <noreply@github.com>2023-01-22 21:43:15 +0000
commit165d5d62485bf09ddac404ab908a7c0ebf6b9851 (patch)
treef333f496ef8f7ff7fe6682a3c3a37096f7dbdb99 /wasm2c/examples/rot13/main.c
parent4e3f0a76c9b445154c7157ce63ff74812aeb6851 (diff)
downloadwabt-165d5d62485bf09ddac404ab908a7c0ebf6b9851.tar.gz
wabt-165d5d62485bf09ddac404ab908a7c0ebf6b9851.tar.bz2
wabt-165d5d62485bf09ddac404ab908a7c0ebf6b9851.zip
Update wasm2c examples to reflect new wasm_rt_allocate_memory() parameter (#2133)
Diffstat (limited to 'wasm2c/examples/rot13/main.c')
-rw-r--r--wasm2c/examples/rot13/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wasm2c/examples/rot13/main.c b/wasm2c/examples/rot13/main.c
index 8081f697..7348d005 100644
--- a/wasm2c/examples/rot13/main.c
+++ b/wasm2c/examples/rot13/main.c
@@ -62,7 +62,7 @@ int main(int argc, char** argv) {
/* Create a `host` module instance to store the memory and current string */
struct Z_host_instance_t host_instance;
/* Allocate 1 page of wasm memory (64KiB). */
- wasm_rt_allocate_memory(&host_instance.memory, 1, 1);
+ wasm_rt_allocate_memory(&host_instance.memory, 1, 1, false);
/* Construct the module instance */
Z_rot13_instantiate(&rot13_instance, &host_instance);