Merge pull request #1150 from fsmoke/gcc-warnings-fix

gcc x64 build warning fix around type casting size_t to int #1150
This commit is contained in:
Christophe 2023-08-18 14:49:45 +02:00 committed by GitHub
commit 684822982b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -362,7 +362,7 @@ namespace detail
{ {
GLM_STATIC_ASSERT(std::numeric_limits<T>::is_integer, "'findMSB' only accept integer values"); GLM_STATIC_ASSERT(std::numeric_limits<T>::is_integer, "'findMSB' only accept integer values");
return detail::compute_findMSB_vec<L, T, Q, sizeof(T) * 8>::call(v); return detail::compute_findMSB_vec<L, T, Q, static_cast<int>(sizeof(T) * 8)>::call(v);
} }
}//namespace glm }//namespace glm