From db8f5f5ccc89304a28aa754087a6c2bf72e55717 Mon Sep 17 00:00:00 2001 From: Derek Hensley Date: Sun, 28 Jan 2024 16:27:50 -0800 Subject: General Cleanup 2 (#1538) * Cleanup * Cleanup variables.h * Cleanup fault headers * Some includes/headers cleanup * Libultra btn wrappers * Mark differences to original libultra headers * Remove duplicate include in fault * format * Update include/PR/os_voice.h Co-authored-by: Tom Overton * align --------- Co-authored-by: Tom Overton --- src/boot/O2/mtxuty-cvt.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/boot/O2') diff --git a/src/boot/O2/mtxuty-cvt.c b/src/boot/O2/mtxuty-cvt.c index a5da24522..f96de806f 100644 --- a/src/boot/O2/mtxuty-cvt.c +++ b/src/boot/O2/mtxuty-cvt.c @@ -7,9 +7,13 @@ void MtxConv_F2L(Mtx* mtx, MtxF* mf) { for (i = 0; i < 4; i++) { for (j = 0; j < 4; j++) { s32 value = (mf->mf[i][j] * 0x10000); + struct { + u16 intPart[4][4]; + u16 fracPart[4][4]; + }* mu = (void*)mtx; - mtx->intPart[i][j] = value >> 16; - mtx->fracPart[i][j] = value; + mu->intPart[i][j] = value >> 16; + mu->fracPart[i][j] = value; } } } -- cgit v1.2.3