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;