mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
LibCrypto: Make a VERIFY a static_assert since it only uses constants
This commit is contained in:
parent
fce2b33758
commit
2290fbc2a0
Notes:
sideshowbarker
2024-07-17 08:55:54 +09:00
Author: https://github.com/davidot
Commit: 2290fbc2a0
Pull-request: https://github.com/SerenityOS/serenity/pull/14929
Reviewed-by: https://github.com/alimpfard ✅
Reviewed-by: https://github.com/linusg
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue