Browse Source

Fixed compAdd, issue #40

Christophe Riccio 13 years ago
parent
commit
e7173dd156
2 changed files with 7 additions and 1 deletions
  1. 1 1
      glm/gtx/component_wise.inl
  2. 6 0
      readme.txt

+ 1 - 1
glm/gtx/component_wise.inl

@@ -12,7 +12,7 @@ namespace glm
 	template <typename genType>
 	template <typename genType>
 	GLM_FUNC_QUALIFIER typename genType::value_type compAdd(genType const & v)
 	GLM_FUNC_QUALIFIER typename genType::value_type compAdd(genType const & v)
 	{
 	{
-		typename genType::size_type result = typename genType::value_type(0);
+		typename genType::value_type result = typename genType::value_type(0);
 		for(typename genType::size_type i = 0; i < v.length(); ++i)
 		for(typename genType::size_type i = 0; i < v.length(); ++i)
 			result += v[i];
 			result += v[i];
 		return result;
 		return result;

+ 6 - 0
readme.txt

@@ -36,6 +36,12 @@ GLM is a header only library, there is nothing to build, just include it.
 More informations in GLM manual:
 More informations in GLM manual:
 http://glm.g-truc.net/glm.pdf
 http://glm.g-truc.net/glm.pdf
 
 
+================================================================================
+GLM 0.9.4.2: 2013-01-XX
+--------------------------------------------------------------------------------
+- Fixed compAdd from GTX_component_wise
+- Fixed GCC warnings
+
 ================================================================================
 ================================================================================
 GLM 0.9.4.1: 2012-12-22
 GLM 0.9.4.1: 2012-12-22
 --------------------------------------------------------------------------------
 --------------------------------------------------------------------------------