Browse Source

Fixed sign for unsigned types #271

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

+ 1 - 1
glm/detail/func_common.inl

@@ -143,7 +143,7 @@ namespace detail
 	{
 		GLM_FUNC_QUALIFIER static vecType<T, P> call(vecType<T, P> const & x)
 		{
-			return glm::abs(x);
+			return vecType<T, P>(glm::greaterThan(x , vecType<T, P>(0)));
 		}
 	};