summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-11-21 07:59:27 +0100
committerLioncash <mathew1800@gmail.com>2018-11-21 08:08:18 +0100
commit45211a7a9183f8f62cb3e90b6e718cf33e46bec6 (patch)
treed7cc4e8b6083b5ec73a68794615bb56197da5bcc /src
parentcommon/math_util: Make Rectangle's constructors constexpr (diff)
downloadyuzu-45211a7a9183f8f62cb3e90b6e718cf33e46bec6.tar
yuzu-45211a7a9183f8f62cb3e90b6e718cf33e46bec6.tar.gz
yuzu-45211a7a9183f8f62cb3e90b6e718cf33e46bec6.tar.bz2
yuzu-45211a7a9183f8f62cb3e90b6e718cf33e46bec6.tar.lz
yuzu-45211a7a9183f8f62cb3e90b6e718cf33e46bec6.tar.xz
yuzu-45211a7a9183f8f62cb3e90b6e718cf33e46bec6.tar.zst
yuzu-45211a7a9183f8f62cb3e90b6e718cf33e46bec6.zip
Diffstat (limited to 'src')
-rw-r--r--src/common/math_util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/math_util.h b/src/common/math_util.h
index cf5ad8457..94b4394c5 100644
--- a/src/common/math_util.h
+++ b/src/common/math_util.h
@@ -24,10 +24,10 @@ struct Rectangle {
: left(left), top(top), right(right), bottom(bottom) {}
T GetWidth() const {
- return std::abs(static_cast<typename std::make_signed<T>::type>(right - left));
+ return std::abs(static_cast<std::make_signed_t<T>>(right - left));
}
T GetHeight() const {
- return std::abs(static_cast<typename std::make_signed<T>::type>(bottom - top));
+ return std::abs(static_cast<std::make_signed_t<T>>(bottom - top));
}
Rectangle<T> TranslateX(const T x) const {
return Rectangle{left + x, top, right + x, bottom};