From da47fac3845ad06577c01d9514ebd7a48fd967b0 Mon Sep 17 00:00:00 2001 From: Vincent Aymong Date: Thu, 6 Jul 2017 17:54:13 -0400 Subject: [PATCH] Make C++98 compliant, part 2 --- glm/gtx/matrix_factorisation.inl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/glm/gtx/matrix_factorisation.inl b/glm/gtx/matrix_factorisation.inl index 52f0d56c..f165016f 100644 --- a/glm/gtx/matrix_factorisation.inl +++ b/glm/gtx/matrix_factorisation.inl @@ -13,11 +13,9 @@ namespace glm { template class matType> GLM_FUNC_QUALIFIER matType fliplr(const matType& in) { - constexpr length_t num_cols = C; - matType out; - for (length_t i = 0; i < num_cols; i++) { - out[i] = in[(num_cols - i) - 1]; + for (length_t i = 0; i < C; i++) { + out[i] = in[(C - i) - 1]; } return out;