From 4d7b5fdfebdaaf54ecc28f03a14765f51e634d2c Mon Sep 17 00:00:00 2001 From: Artyom Abakumov Date: Tue, 17 Dec 2024 11:24:41 +0300 Subject: [PATCH] Mark FB_ALIGN as constexpr (#8339) Co-authored-by: Artyom Abakumov --- src/include/fb_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/fb_types.h b/src/include/fb_types.h index 1daeff94a2..19ee4cf3e6 100644 --- a/src/include/fb_types.h +++ b/src/include/fb_types.h @@ -150,7 +150,7 @@ typedef ULONG StreamType; // Alignment rule template -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)); }