diff options
author | davidot <davidot@serenityos.org> | 2022-08-24 01:00:57 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-08-24 23:27:17 +0100 |
commit | 2290fbc2a01bc4cc0451a127e70199415415327d (patch) | |
tree | 91d52d40025e7a35e2a1f248b44291d5f65e5bdb | |
parent | fce2b33758586d9d928e14416815b8feba55c953 (diff) | |
download | serenity-2290fbc2a01bc4cc0451a127e70199415415327d.zip |
LibCrypto: Make a VERIFY a static_assert since it only uses constants
-rw-r--r-- | Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.cpp b/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.cpp index a0e30d96ed..23fcd2dde9 100644 --- a/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.cpp +++ b/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.cpp @@ -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]; |