From 543a218dd22e250527a0989d8cc24dd255eb25b0 Mon Sep 17 00:00:00 2001 From: Seeky <58006653+SeekyCt@users.noreply.github.com> Date: Mon, 1 Jan 2024 21:48:12 +0000 Subject: [PATCH] Fix warnings --- src/debug.c | 2 +- src/mario_pouch.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/debug.c b/src/debug.c index 33ce561..ce173a9 100644 --- a/src/debug.c +++ b/src/debug.c @@ -48,5 +48,5 @@ void OSPanic(const char * filename, s32 line, const char * msg, ...) // Halt execution OSDisableInterrupts(); PPCHalt(); - while (1); + while (1) { } } diff --git a/src/mario_pouch.c b/src/mario_pouch.c index bac834c..f087abe 100644 --- a/src/mario_pouch.c +++ b/src/mario_pouch.c @@ -273,7 +273,7 @@ void pouchMain() wp2->unknown_0x0 = 0; wp2->unknown_0x10 = 0; - msec = OSTicksToMilliseconds(wp2->unknown_0x8); + msec = (s32) OSTicksToMilliseconds(wp2->unknown_0x8); if (abs(wp2->unknown_0x14 - msec) > (s32) (1500.0f / gp->gameSpeed)) { wp2->unknown_0x14 = msec; @@ -314,7 +314,7 @@ void pouchMain() wp2->unknown_0x8 = 0; wp2->unknown_0x14 = 0; - msec = OSTicksToMilliseconds(wp2->unknown_0x0); + msec = (s32) OSTicksToMilliseconds(wp2->unknown_0x0); if (abs(wp2->unknown_0x10 - msec) > (s32) (1500.0f / gp->gameSpeed)) { wp2->unknown_0x10 = msec;