LibCrypto: Make a VERIFY a static_assert since it only uses constants

This commit is contained in:
davidot 2022-08-24 01:00:57 +02:00 committed by Linus Groh
commit 2290fbc2a0
Notes: sideshowbarker 2024-07-17 08:55:54 +09:00

View file

@ -104,7 +104,7 @@ String UnsignedBigInteger::to_base(u16 N) const
u64 UnsignedBigInteger::to_u64() const
{
VERIFY(sizeof(Word) == 4);
static_assert(sizeof(Word) == 4);
if (!length())
return 0;
u64 value = m_words[0];