summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authordavidot <davidot@serenityos.org>2022-10-10 02:30:29 +0200
committerLinus Groh <mail@linusgroh.de>2022-10-23 15:48:45 +0200
commitbf6d4a5cbf131f79d9d808a4316ddbd4043a1a54 (patch)
tree60612cfb02adf752585a1964d48acf89b837f677 /AK
parent66d07a452f0fd0384bf430f29f624520d8f0f183 (diff)
downloadserenity-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.h2
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);
}