Skip to content

Commit

Permalink
bitvec: fix compilation error in set(string_view)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablohoch authored and felixguendling committed Jun 7, 2024
1 parent 8938db2 commit 9b0c8e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/cista/containers/bitvec.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ struct basic_bitvec {
assert(std::all_of(begin(s), end(s),
[](char const c) { return c == '0' || c == '1'; }));
resize(s.size());
for (auto i = std::size_t{0U}; i != std::min(size_, s.size()); ++i) {
for (auto i = std::size_t{0U};
i != std::min(static_cast<std::size_t>(size_), s.size()); ++i) {
set(i, s[s.size() - i - 1] != '0');
}
}
Expand Down

0 comments on commit 9b0c8e3

Please sign in to comment.