summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/coretmpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/coretmpl.h')
-rw-r--r--src/lib/util/coretmpl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/coretmpl.h b/src/lib/util/coretmpl.h
index 49f01f8415c..9d033f72d26 100644
--- a/src/lib/util/coretmpl.h
+++ b/src/lib/util/coretmpl.h
@@ -627,7 +627,7 @@ template <typename T, typename U, typename V> constexpr T BIT(T x, U n, V w)
/// \return The extracted bits packed into a right-aligned field.
template <typename T, typename U, typename... V> constexpr T bitswap(T val, U b, V... c) noexcept
{
- if constexpr (sizeof...(c))
+ if constexpr (sizeof...(c) > 0U)
return (BIT(val, b) << sizeof...(c)) | bitswap(val, c...);
else
return BIT(val, b);