summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/binary-writer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binary-writer.cc b/src/binary-writer.cc
index ec8d9dbd..5d75fca4 100644
--- a/src/binary-writer.cc
+++ b/src/binary-writer.cc
@@ -245,7 +245,7 @@ void BinaryWriter::WriteBlockDecl(const BlockDeclaration& decl) {
Index index = decl.has_func_type ? module_->GetFuncTypeIndex(decl.type_var)
: module_->GetFuncTypeIndex(decl.sig);
assert(index != kInvalidIndex);
- WriteS32Leb128(stream_, index, "block type function index");
+ WriteU32Leb128WithReloc(index, "block type function index", RelocType::TypeIndexLEB);
}
void BinaryWriter::WriteSectionHeader(const char* desc,