Update pauseMenu.c

fighting with the lint system
This commit is contained in:
Lemeon 2024-01-21 20:59:59 +01:00 committed by GitHub
parent cf72e7b2d3
commit 299ca4abd6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 10 deletions

View File

@ -1232,8 +1232,8 @@ bool32 sub_080A5F24(void) {
return result; return result;
} }
typedef union{ typedef union {
struct{ struct {
s32 v1; s32 v1;
s32 v2; s32 v2;
} values; } values;
@ -1243,7 +1243,7 @@ typedef union{
void sub_080A5F48(Item item, u32 offset) { void sub_080A5F48(Item item, u32 offset) {
// this funcitons signature allows the div function to return a u64 (2x 32 bit registers) // this funcitons signature allows the div function to return a u64 (2x 32 bit registers)
// with the result in one register and the remainder in the other // with the result in one register and the remainder in the other
typedef u64 DivRem (u32, u32); typedef u64 DivRem(u32, u32);
s32 ammoCount; s32 ammoCount;
s32 onesDigit; s32 onesDigit;
@ -1281,7 +1281,7 @@ void sub_080A5F48(Item item, u32 offset) {
if (ammoCount < 0) if (ammoCount < 0)
return; return;
ret.raw = ((DivRem*)Div)(ammoCount,10); // by casting to DivRem, we can recover the remainder from the Div call ret.raw = ((DivRem*)Div)(ammoCount, 10); // by casting to DivRem, we can recover the remainder from the Div call
onesDigit = ret.values.v2; onesDigit = ret.values.v2;
tensDigit = ret.values.v1; tensDigit = ret.values.v1;