diff --git a/include/cglm/mat2x3.h b/include/cglm/mat2x3.h index 3d5cedc2..f5e25ef1 100644 --- a/include/cglm/mat2x3.h +++ b/include/cglm/mat2x3.h @@ -122,9 +122,7 @@ glm_mat2x3_mul(mat2x3 m1, mat3x2 m2, mat3 dest) { CGLM_INLINE void glm_mat2x3_mulv(mat2x3 m, vec2 v, vec3 dest) { - float v0, v1; - - v0 = v[0]; v1 = v[1]; + float v0 = v[0]; v1 = v[1]; dest[0] = m[0][0] * v0 + m[1][0] * v1; dest[1] = m[0][1] * v0 + m[1][1] * v1; diff --git a/include/cglm/mat2x4.h b/include/cglm/mat2x4.h index 2fdda24f..e5c12816 100644 --- a/include/cglm/mat2x4.h +++ b/include/cglm/mat2x4.h @@ -129,9 +129,7 @@ glm_mat2x4_mul(mat2x4 m1, mat4x2 m2, mat4 dest) { CGLM_INLINE void glm_mat2x4_mulv(mat2x4 m, vec2 v, vec4 dest) { - float v0, v1; - - v0 = v[0], v1 = v[1]; + float v0 = v[0], v1 = v[1]; dest[0] = m[0][0] * v0 + m[1][0] * v1; dest[1] = m[0][1] * v0 + m[1][1] * v1; diff --git a/include/cglm/mat3x2.h b/include/cglm/mat3x2.h index 6369131a..75ed9c27 100644 --- a/include/cglm/mat3x2.h +++ b/include/cglm/mat3x2.h @@ -118,9 +118,7 @@ glm_mat3x2_mul(mat3x2 m1, mat2x3 m2, mat2 dest) { CGLM_INLINE void glm_mat3x2_mulv(mat3x2 m, vec3 v, vec2 dest) { - float v0, v1, v2; - - v0 = v[0], v1 = v[1], v2 = v[2]; + float v0 = v[0], v1 = v[1], v2 = v[2]; dest[0] = m[0][0] * v0 + m[1][0] * v1 + m[2][0] * v2; dest[1] = m[0][1] * v0 + m[1][1] * v1 + m[2][1] * v2;