mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-22 19:21:59 +00:00
fix start section not pushing it's length
This commit is contained in:
@ -157,7 +157,9 @@ impl Serialize for Section {
|
||||
},
|
||||
Section::Start(index) => {
|
||||
VarUint7::from(0x08).serialize(writer)?;
|
||||
VarUint32::from(index).serialize(writer)?;
|
||||
let mut counted_writer = CountedWriter::new(writer);
|
||||
VarUint32::from(index).serialize(&mut counted_writer)?;
|
||||
counted_writer.done()?;
|
||||
},
|
||||
Section::Element(element_section) => {
|
||||
VarUint7::from(0x09).serialize(writer)?;
|
||||
|
Reference in New Issue
Block a user