Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
SeekyCt committed Jan 1, 2024
1 parent 779cbb8 commit 543a218
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ void OSPanic(const char * filename, s32 line, const char * msg, ...)
// Halt execution
OSDisableInterrupts();
PPCHalt();
while (1);
while (1) { }
}
4 changes: 2 additions & 2 deletions src/mario_pouch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 543a218

Please sign in to comment.