Skip to content

Commit

Permalink
Replace "length" with "size" to be compatible with other types than S…
Browse files Browse the repository at this point in the history
…tring (e.g. std::vector<char>)
  • Loading branch information
hkerma committed Sep 10, 2024
1 parent c1b9704 commit 3545d61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/xcdat/code_table.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class code_table {
for (std::uint8_t ch : key) {
counter[ch].freq += 1;
}
m_max_length = std::max<std::uint64_t>(m_max_length, key.length());
m_max_length = std::max<std::uint64_t>(m_max_length, key.size());
}

{
Expand Down

0 comments on commit 3545d61

Please sign in to comment.