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:
parent
9e1dd0abe1
commit
471c3af367
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue