mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 22:03:03 +01:00
Mark FB_ALIGN as constexpr (#8339)
Co-authored-by: Artyom Abakumov <artyom.abakumov@red-soft.ru>
This commit is contained in:
parent
85e25e543b
commit
4d7b5fdfeb
@ -150,7 +150,7 @@ typedef ULONG StreamType;
|
|||||||
|
|
||||||
// Alignment rule
|
// Alignment rule
|
||||||
template <typename T>
|
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));
|
return (T) ((((uintptr_t) n) + b - 1) & ~(b - 1));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user