diff options
Diffstat (limited to 'src/corelib/kernel/qmath.h')
-rw-r--r-- | src/corelib/kernel/qmath.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/corelib/kernel/qmath.h b/src/corelib/kernel/qmath.h index 5fe635877e..391d6d4282 100644 --- a/src/corelib/kernel/qmath.h +++ b/src/corelib/kernel/qmath.h @@ -265,14 +265,16 @@ constexpr inline quint64 qConstexprNextPowerOfTwo(quint64 v) { return v; } -constexpr inline quint32 qConstexprNextPowerOfTwo(qint32 v) { +constexpr inline quint32 qConstexprNextPowerOfTwo(qint32 v) +{ return qConstexprNextPowerOfTwo(quint32(v)); } -constexpr inline quint32 qConstexprNextPowerOfTwo(qint64 v) { +constexpr inline quint64 qConstexprNextPowerOfTwo(qint64 v) +{ return qConstexprNextPowerOfTwo(quint64(v)); } -} +} // namespace QtPrivate constexpr inline quint32 qNextPowerOfTwo(quint32 v) { |