From 2290fbc2a01bc4cc0451a127e70199415415327d Mon Sep 17 00:00:00 2001 From: davidot Date: Wed, 24 Aug 2022 01:00:57 +0200 Subject: [PATCH] LibCrypto: Make a VERIFY a static_assert since it only uses constants --- Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];