diff options
Diffstat (limited to 'src/binary-reader.cc')
-rw-r--r-- | src/binary-reader.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/binary-reader.cc b/src/binary-reader.cc index 74fd3a67..6041145b 100644 --- a/src/binary-reader.cc +++ b/src/binary-reader.cc @@ -2220,7 +2220,7 @@ Result BinaryReader::ReadElemSection(Offset section_size) { } Type elem_type = Type::Funcref; - CALLBACK(BeginElemSegment, i, table_index, flags, elem_type); + CALLBACK(BeginElemSegment, i, table_index, flags); if (!(flags & SegPassive)) { CALLBACK(BeginElemSegmentInitExpr, i); @@ -2245,6 +2245,8 @@ Result BinaryReader::ReadElemSection(Offset section_size) { } } + CALLBACK(OnElemSegmentElemType, i, elem_type); + Index num_elem_exprs; CHECK_RESULT(ReadCount(&num_elem_exprs, "elem count")); |