diff --git a/glm/core/func_matrix.inl b/glm/core/func_matrix.inl index d7aa7a43..4bbfc511 100644 --- a/glm/core/func_matrix.inl +++ b/glm/core/func_matrix.inl @@ -74,7 +74,7 @@ namespace glm GLM_STATIC_ASSERT(detail::type::is_float, "'outerProduct' only accept floating-point inputs"); detail::tmat3x3 m(detail::tmat3x3::null); - for(typename detail::tmat3x3::size_type i = 0; i < detail::tmat3x3::col_size(); ++i) + for(typename detail::tmat3x3::size_type i(0); i < m.length(); ++i) m[i] = c * r[i]; return m; } @@ -89,7 +89,7 @@ namespace glm GLM_STATIC_ASSERT(detail::type::is_float, "'outerProduct' only accept floating-point inputs"); detail::tmat4x4 m(detail::tmat4x4::null); - for(typename detail::tmat4x4::size_type i = 0; i < detail::tmat4x4::col_size(); ++i) + for(typename detail::tmat4x4::size_type i(0); i < m.length(); ++i) m[i] = c * r[i]; return m; } diff --git a/readme.txt b/readme.txt index b0e2047b..34475b87 100644 --- a/readme.txt +++ b/readme.txt @@ -48,6 +48,7 @@ GLM 0.9.2.8: 2011-12-XX -------------------------------------------------------------------------------- - Fixed modf implementation - Fixed step function accuracy +- Fixed outerProduct ================================================================================ GLM 0.9.3.A: 2011-11-11