Skip to content

Commit

Permalink
Make zpp::bits::bytes more friendly with signed size.
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalz800 committed May 8, 2023
1 parent a91a2c3 commit 0c9fab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zpp_bits.h
Original file line number Diff line number Diff line change
Expand Up @@ -972,8 +972,8 @@ class bytes
{
}

constexpr explicit bytes(std::span<Item> items, std::size_t size) :
m_items(items.data()), m_size(size)
constexpr explicit bytes(std::span<Item> items, auto size) :
m_items(items.data()), m_size(std::size_t(size))
{
}

Expand Down

0 comments on commit 0c9fab8

Please sign in to comment.