move section_id inside

This commit is contained in:
NikVolf 2018-02-20 20:00:19 +03:00
parent 7ae0c11411
commit 686081be60
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -243,8 +243,8 @@ impl Deserialize for Module {
} else if last_section_id == section.id() {
return Err(Error::DuplicatedSections(last_section_id));
}
last_section_id = section.id();
}
last_section_id = section.id();
sections.push(section);
}
}