summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/wasm.h b/src/wasm.h
index b5d51b84b..99a2d9f94 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -2036,11 +2036,13 @@ class ElementSegment : public Named {
public:
Name table;
Expression* offset;
- Type type = Type::funcref;
+ Type type = Type(HeapType::func, Nullable);
std::vector<Expression*> data;
ElementSegment() = default;
- ElementSegment(Name table, Expression* offset, Type type = Type::funcref)
+ ElementSegment(Name table,
+ Expression* offset,
+ Type type = Type(HeapType::func, Nullable))
: table(table), offset(offset), type(type) {}
ElementSegment(Name table,
Expression* offset,
@@ -2060,7 +2062,7 @@ public:
Address initial = 0;
Address max = kMaxSize;
- Type type = Type::funcref;
+ Type type = Type(HeapType::func, Nullable);
bool hasMax() { return max != kUnlimitedSize; }
void clear() {