Skip to content

Commit

Permalink
Merge pull request #13 from gofractally/clang-init
Browse files Browse the repository at this point in the history
Fix missing initializer in constexpr function.
  • Loading branch information
swatanabe authored Apr 9, 2024
2 parents ee4cf3e + 8c7dbce commit c8495e8
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 c8495e8

Please sign in to comment.