8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 18:43:02 +01:00

Mark FB_ALIGN as constexpr (#8339)

Co-authored-by: Artyom Abakumov <artyom.abakumov@red-soft.ru>
This commit is contained in:
Artyom Abakumov 2024-12-17 11:24:41 +03:00 committed by GitHub
parent 85e25e543b
commit 4d7b5fdfeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -150,7 +150,7 @@ typedef ULONG StreamType;
// Alignment rule
template <typename T>
inline T FB_ALIGN(T n, uintptr_t b)
constexpr T FB_ALIGN(T n, uintptr_t b)
{
return (T) ((((uintptr_t) n) + b - 1) & ~(b - 1));
}