summaryrefslogtreecommitdiff
path: root/test/example/c-api-kitchen-sink.c
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-08-12 11:57:12 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-08-12 20:16:27 -0700
commit7e3917884152eda021cff9107b5f789aee92fb1b (patch)
tree1a48c04c52e6e7b1615b01e2c92e2d597fe30b3c /test/example/c-api-kitchen-sink.c
parent79029eb346b721eacdaa28326fe8e7b50042611c (diff)
downloadbinaryen-7e3917884152eda021cff9107b5f789aee92fb1b.tar.gz
binaryen-7e3917884152eda021cff9107b5f789aee92fb1b.tar.bz2
binaryen-7e3917884152eda021cff9107b5f789aee92fb1b.zip
support expressions in segment offsets
Diffstat (limited to 'test/example/c-api-kitchen-sink.c')
-rw-r--r--test/example/c-api-kitchen-sink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c
index 496ac4efd..0aaf5ab95 100644
--- a/test/example/c-api-kitchen-sink.c
+++ b/test/example/c-api-kitchen-sink.c
@@ -246,7 +246,7 @@ void test_core() {
// Memory. One per module
const char *segments[] = { "hello, world" };
- BinaryenIndex segmentOffsets[] = { 10 };
+ BinaryenExpressionRef segmentOffsets[] = { BinaryenConst(module, BinaryenLiteralInt32(10)) };
BinaryenIndex segmentSizes[] = { 12 };
BinaryenSetMemory(module, 1, 256, "mem", segments, segmentOffsets, segmentSizes, 1);