mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-04 06:06:17 +00:00
a/math: Fix warning in math_matrix_2x2_multiply
This commit is contained in:
parent
aad9b04a92
commit
98982bd25b
|
@ -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 l = *left;
|
||||||
const struct xrt_matrix_2x2 r = *right;
|
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[0] + l.v[1] * r.v[2],
|
||||||
l.v[0] * r.v[1] + l.v[1] * r.v[3],
|
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[0] + l.v[3] * r.v[2],
|
||||||
l.v[2] * r.v[1] + l.v[3] * r.v[3],
|
l.v[2] * r.v[1] + l.v[3] * r.v[3],
|
||||||
}};
|
}}};
|
||||||
|
|
||||||
*result_out = result;
|
*result_out = result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue