Skip to content

Commit

Permalink
Change init list construction
Browse files Browse the repository at this point in the history
  • Loading branch information
cemderv committed Oct 20, 2024
1 parent 9874ba3 commit e46698b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shadercompiler/Scope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static auto get_levenstein_distance(std::string_view s1, std::string_view s2) ->
const auto s1_len = s1.size();
const auto s2_len = s2.size();

auto distances = List<size_t, 4>{s2_len + 1};
auto distances = List<size_t, 4>(s2_len + 1);
std::iota(distances.begin(), distances.end(), size_t(0));

for (size_t i = 0; i < s1_len; ++i)
Expand Down

0 comments on commit e46698b

Please sign in to comment.