diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/binary-reader.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/binary-reader.cc b/src/binary-reader.cc index 217253f5..c410aca9 100644 --- a/src/binary-reader.cc +++ b/src/binary-reader.cc @@ -2360,9 +2360,9 @@ Result BinaryReader::ReadSections() { bool seen_section_code[static_cast<int>(BinarySection::Last) + 1] = {false}; for (; state_.offset < state_.size; ++section_index) { - uint32_t section_code; + uint8_t section_code; Offset section_size; - CHECK_RESULT(ReadU32Leb128(§ion_code, "section code")); + CHECK_RESULT(ReadU8(§ion_code, "section code")); CHECK_RESULT(ReadOffset(§ion_size, "section size")); ReadEndRestoreGuard guard(this); read_end_ = state_.offset + section_size; |