Browse Source

Additional fix for GLM_FORCE_SIZE_FUNC #245

Christophe Riccio 11 years ago
parent
commit
8cb9328e11
1 changed files with 2 additions and 2 deletions
  1. 2 2
      glm/detail/func_common.inl

+ 2 - 2
glm/detail/func_common.inl

@@ -81,8 +81,8 @@ namespace detail
 	{
 	{
 		GLM_FUNC_QUALIFIER static vecType<T, P> call(vecType<T, P> const & x, vecType<T, P> const & y, vecType<bool, P> const & a)
 		GLM_FUNC_QUALIFIER static vecType<T, P> call(vecType<T, P> const & x, vecType<T, P> const & y, vecType<bool, P> const & a)
 		{
 		{
-			vecType<T, P> Result;
-			for(length_t i = 0; i < detail::component_count(x); ++i)
+			vecType<T, P> Result(vecType<T, P>::_null);
+			for(detail::component_count_t i = 0; i < detail::component_count(x); ++i)
 				Result[i] = a[i] ? y[i] : x[i];
 				Result[i] = a[i] ? y[i] : x[i];
 			return Result;
 			return Result;
 		}
 		}