fix: mask warning

This commit is contained in:
Gottfried Leibniz 2023-01-06 10:54:23 -04:00
parent fc8f4bb442
commit 413f091ff5

View File

@ -226,7 +226,7 @@ namespace detail
{ {
GLM_STATIC_ASSERT(std::numeric_limits<genIUType>::is_integer, "'mask' accepts only integer values"); GLM_STATIC_ASSERT(std::numeric_limits<genIUType>::is_integer, "'mask' accepts only integer values");
return Bits >= sizeof(genIUType) * 8 ? ~static_cast<genIUType>(0) : (static_cast<genIUType>(1) << Bits) - static_cast<genIUType>(1); return Bits >= static_cast<genIUType>(sizeof(genIUType) * 8) ? ~static_cast<genIUType>(0) : (static_cast<genIUType>(1) << Bits) - static_cast<genIUType>(1);
} }
template<length_t L, typename T, qualifier Q> template<length_t L, typename T, qualifier Q>