Skip to content

Commit 0c9fab8

Browse files
committed
Make zpp::bits::bytes more friendly with signed size.
1 parent a91a2c3 commit 0c9fab8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zpp_bits.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -972,8 +972,8 @@ class bytes
972972
{
973973
}
974974

975-
constexpr explicit bytes(std::span<Item> items, std::size_t size) :
976-
m_items(items.data()), m_size(size)
975+
constexpr explicit bytes(std::span<Item> items, auto size) :
976+
m_items(items.data()), m_size(std::size_t(size))
977977
{
978978
}
979979

0 commit comments

Comments
 (0)