summaryrefslogtreecommitdiff
path: root/test/example/c-api-hello-world.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/example/c-api-hello-world.c')
-rw-r--r--test/example/c-api-hello-world.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/example/c-api-hello-world.c b/test/example/c-api-hello-world.c
index 016c2404b..e4a8a1cad 100644
--- a/test/example/c-api-hello-world.c
+++ b/test/example/c-api-hello-world.c
@@ -13,7 +13,7 @@ int main() {
// Get the 0 and 1 arguments, and add them
BinaryenExpressionRef x = BinaryenGetLocal(module, 0, BinaryenInt32()),
y = BinaryenGetLocal(module, 1, BinaryenInt32());
- BinaryenExpressionRef add = BinaryenBinary(module, BinaryenAdd(), x, y);
+ BinaryenExpressionRef add = BinaryenBinary(module, BinaryenAddInt32(), x, y);
// Create the add function
// Note: no additional local variables