1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:07:45 +00:00

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
parent fce2b33758
commit 2290fbc2a0

View file

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