summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-01-14 11:30:35 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-01-14 11:30:35 -0800
commit76db2f00068f732c6bee8346085c794d26061fc0 (patch)
tree1b14891c0040ad7801a2d105b85ece391503bbf8 /src
parent666822e6cfaf53944e2eb2792dfe1b9c85446952 (diff)
downloadbinaryen-76db2f00068f732c6bee8346085c794d26061fc0.tar.gz
binaryen-76db2f00068f732c6bee8346085c794d26061fc0.tar.bz2
binaryen-76db2f00068f732c6bee8346085c794d26061fc0.zip
fix binary writing of CallIndirect
Diffstat (limited to 'src')
-rw-r--r--src/wasm-binary.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index 2febf271e..ed4d5a959 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -633,7 +633,7 @@ public:
}
void visitCallIndirect(CallIndirect *curr) {
if (debug) std::cerr << "zz node: CallIndirect" << std::endl;
- o << int8_t(BinaryConsts::CallFunction) << LEB128(getFunctionTypeIndex(curr->fullType->name));
+ o << int8_t(BinaryConsts::CallIndirect) << LEB128(getFunctionTypeIndex(curr->fullType->name));
recurse(curr->target);
for (auto operand : curr->operands) {
recurse(operand);