Fixed compAdd, issue #40

This commit is contained in:
Christophe Riccio 2013-01-23 00:55:09 +01:00
parent 9926506c7f
commit e7173dd156
2 changed files with 7 additions and 1 deletions

View File

@ -12,7 +12,7 @@ namespace glm
template <typename genType>
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)
result += v[i];
return result;

View File

@ -36,6 +36,12 @@ GLM is a header only library, there is nothing to build, just include it.
More informations in GLM manual:
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
--------------------------------------------------------------------------------