aboutsummaryrefslogtreecommitdiffstats
path: root/common/albyte.h
diff options
context:
space:
mode:
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; } \