Skip to content

Commit 5169578

Browse files
author
Artyom Abakumov
committed
Mark FB_ALIGN as constexpr
1 parent 30b77dd commit 5169578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/fb_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ typedef ULONG StreamType;
150150

151151
// Alignment rule
152152
template <typename T>
153-
inline T FB_ALIGN(T n, uintptr_t b)
153+
constexpr T FB_ALIGN(T n, uintptr_t b)
154154
{
155155
return (T) ((((uintptr_t) n) + b - 1) & ~(b - 1));
156156
}

0 commit comments

Comments
 (0)