diff options
author | davidot <davidot@serenityos.org> | 2022-10-10 02:30:29 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-23 15:48:45 +0200 |
commit | bf6d4a5cbf131f79d9d808a4316ddbd4043a1a54 (patch) | |
tree | 60612cfb02adf752585a1964d48acf89b837f677 /AK | |
parent | 66d07a452f0fd0384bf430f29f624520d8f0f183 (diff) | |
download | serenity-bf6d4a5cbf131f79d9d808a4316ddbd4043a1a54.zip |
AK: Make truncating UFixedBigInts constexpr
Also add some tests and shift tests while we're at it.
Diffstat (limited to 'AK')
-rw-r--r-- | AK/UFixedBigInt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/UFixedBigInt.h b/AK/UFixedBigInt.h index 9880dc75d7..584d762cf9 100644 --- a/AK/UFixedBigInt.h +++ b/AK/UFixedBigInt.h @@ -87,7 +87,7 @@ public: } template<Unsigned U> - requires(sizeof(T) >= sizeof(U)) explicit operator U() const + requires(sizeof(T) >= sizeof(U)) constexpr explicit operator U() const { return static_cast<U>(m_low); } |