aboutsummaryrefslogtreecommitdiffstats
path: root/common/albyte.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-11 05:53:10 -0700
committerChris Robinson <[email protected]>2019-09-11 05:53:10 -0700
commit388928f3aa1ecf1a4f930c27687e7d0d4a9fd824 (patch)
tree082cbddc17fd07325935bf57d087c31d9ea24405 /common/albyte.h
parente4b15aeefcc220a46542c4bb2a2cea033e7954f0 (diff)
Fix some more implicit casts
Diffstat (limited to 'common/albyte.h')
-rw-r--r--common/albyte.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/albyte.h b/common/albyte.h
index c7f4d219..798d136d 100644
--- a/common/albyte.h
+++ b/common/albyte.h
@@ -38,7 +38,7 @@ inline al::byte& operator>>=(al::byte &lhs, T rhs) noexcept
#define AL_DECL_OP(op) \
template<typename T, REQUIRES(std::is_integral<T>::value)> \
inline constexpr al::byte operator op (al::byte lhs, T rhs) noexcept \
-{ return al::byte(to_integer<unsigned int>(lhs) op rhs); } \
+{ return al::byte(to_integer<unsigned int>(lhs) op static_cast<unsigned int>(rhs)); } \
template<typename T, REQUIRES(std::is_integral<T>::value)> \
inline al::byte& operator op##= (al::byte &lhs, T rhs) noexcept \
{ lhs = lhs op rhs; return lhs; } \