summaryrefslogtreecommitdiff
path: root/src/binaryen-c.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/binaryen-c.cpp')
-rw-r--r--src/binaryen-c.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binaryen-c.cpp b/src/binaryen-c.cpp
index aa9f7e641..709672aa4 100644
--- a/src/binaryen-c.cpp
+++ b/src/binaryen-c.cpp
@@ -101,7 +101,7 @@ Literal fromBinaryenLiteral(BinaryenLiteral x) {
return Literal::makeFunc(x.func);
case Type::anyref:
case Type::eqref:
- return Literal::makeNull(Type(x.type));
+ return Literal::makeNull(Type(x.type).getHeapType());
case Type::i31ref:
WASM_UNREACHABLE("TODO: i31ref");
case Type::dataref: