summaryrefslogtreecommitdiffstats
path: root/src/common/alignment.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-08 21:28:34 +0200
committerGitHub <noreply@github.com>2018-08-08 21:28:34 +0200
commitd224eb7c39c43754929972d07998db79ba093279 (patch)
tree4059c27a33d3595cfc37f6316a4e29290221e3d3 /src/common/alignment.h
parentMerge pull request #850 from DarkLordZach/icon-meta (diff)
parentcommon: Convert type traits templates over to variable template versions where applicable (diff)
downloadyuzu-d224eb7c39c43754929972d07998db79ba093279.tar
yuzu-d224eb7c39c43754929972d07998db79ba093279.tar.gz
yuzu-d224eb7c39c43754929972d07998db79ba093279.tar.bz2
yuzu-d224eb7c39c43754929972d07998db79ba093279.tar.lz
yuzu-d224eb7c39c43754929972d07998db79ba093279.tar.xz
yuzu-d224eb7c39c43754929972d07998db79ba093279.tar.zst
yuzu-d224eb7c39c43754929972d07998db79ba093279.zip
Diffstat (limited to 'src/common/alignment.h')
-rw-r--r--src/common/alignment.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/alignment.h b/src/common/alignment.h
index b77da4a92..b9dd38746 100644
--- a/src/common/alignment.h
+++ b/src/common/alignment.h
@@ -9,13 +9,13 @@ namespace Common {
template <typename T>
constexpr T AlignUp(T value, size_t size) {
- static_assert(std::is_unsigned<T>::value, "T must be an unsigned value.");
+ static_assert(std::is_unsigned_v<T>, "T must be an unsigned value.");
return static_cast<T>(value + (size - value % size) % size);
}
template <typename T>
constexpr T AlignDown(T value, size_t size) {
- static_assert(std::is_unsigned<T>::value, "T must be an unsigned value.");
+ static_assert(std::is_unsigned_v<T>, "T must be an unsigned value.");
return static_cast<T>(value - value % size);
}