summaryrefslogtreecommitdiff
path: root/test/example/c-api-multiple-tables.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/example/c-api-multiple-tables.c')
-rw-r--r--test/example/c-api-multiple-tables.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/example/c-api-multiple-tables.c b/test/example/c-api-multiple-tables.c
index d9d812d3d..f3a9ba8dd 100644
--- a/test/example/c-api-multiple-tables.c
+++ b/test/example/c-api-multiple-tables.c
@@ -31,7 +31,7 @@ int main() {
BinaryenAddFunction(module, "adder", params, results, NULL, 0, add);
const char* funcNames[] = {"adder"};
- BinaryenAddTable(module, "tab", 1, 1);
+ BinaryenAddTable(module, "tab", 1, 1, BinaryenTypeFuncref());
assert(BinaryenGetTable(module, "tab") != NULL);
BinaryenAddActiveElementSegment(
module,
@@ -41,7 +41,7 @@ int main() {
1,
BinaryenConst(module, BinaryenLiteralInt32(0)));
- BinaryenAddTable(module, "t2", 1, 1);
+ BinaryenAddTable(module, "t2", 1, 1, BinaryenTypeFuncref());
BinaryenAddActiveElementSegment(
module,
"t2",