Skip to content

Commit

Permalink
Fix missing initializer in constexpr function.
Browse files Browse the repository at this point in the history
  • Loading branch information
swatanabe committed Apr 9, 2024
1 parent ee4cf3e commit 8c7dbce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/eosio/vm/parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ namespace eosio { namespace vm {
}

static constexpr auto make_section_order() {
std::array<std::uint8_t, section_id::num_of_elems> result;
std::array<std::uint8_t, section_id::num_of_elems> result{};
std::uint8_t i = 1;
for (std::uint8_t sec : {type_section, import_section, function_section, table_section, memory_section, global_section, export_section, start_section, element_section, data_count_section, code_section, data_section}) {
result[sec] = i++;
Expand Down

0 comments on commit 8c7dbce

Please sign in to comment.