Browse Source

gcc x64 build warning fix around type casting size_t to int

kostromin 2 years ago
parent
commit
d4717fb57e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      glm/detail/func_integer.inl

+ 1 - 1
glm/detail/func_integer.inl

@@ -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