0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-03-14 05:20:17 +01:00

ircd: Relax assertion.

This commit is contained in:
Jason Volk 2018-05-13 14:41:20 -07:00
parent 9e1dd0abe1
commit 471c3af367

View file

@ -25,7 +25,7 @@ struct ircd::byte_view
operator const T &() const
{
assert(sizeof(T) == size(s));
assert(sizeof(T) <= size(s));
if(unlikely(sizeof(T) > s.size()))
throw std::bad_cast();