a/math: Fix warning in math_matrix_2x2_multiply

This commit is contained in:
Jakob Bornecrantz 2021-12-06 23:03:58 +00:00 committed by Jakob Bornecrantz
parent aad9b04a92
commit 98982bd25b

View file

@ -354,12 +354,13 @@ math_matrix_2x2_multiply(const struct xrt_matrix_2x2 *left,
const struct xrt_matrix_2x2 l = *left;
const struct xrt_matrix_2x2 r = *right;
struct xrt_matrix_2x2 result = {{
// Initialisers: struct, union, v[4]
struct xrt_matrix_2x2 result = {{{
l.v[0] * r.v[0] + l.v[1] * r.v[2],
l.v[0] * r.v[1] + l.v[1] * r.v[3],
l.v[2] * r.v[0] + l.v[3] * r.v[2],
l.v[2] * r.v[1] + l.v[3] * r.v[3],
}};
}}};
*result_out = result;
}