From b1c0c2db76f97994023a99a57531eee7a964634b Mon Sep 17 00:00:00 2001 From: Dragorn421 Date: Sat, 19 Feb 2022 17:50:51 +0100 Subject: [PATCH] Use `s32` as type instead of `StackStatus` enum type --- include/functions.h | 2 +- src/boot/stackcheck.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/functions.h b/include/functions.h index cd5f12d320..7541d16a6c 100644 --- a/include/functions.h +++ b/include/functions.h @@ -51,7 +51,7 @@ void Mio0_Decompress(Yaz0Header* hdr, u8* dst); void StackCheck_Init(StackEntry* entry, void* stackTop, void* stackBottom, u32 initValue, s32 minSpace, const char* name); void StackCheck_Cleanup(StackEntry* entry); -StackStatus StackCheck_GetState(StackEntry* entry); +s32 StackCheck_GetState(StackEntry* entry); u32 StackCheck_CheckAll(void); u32 StackCheck_Check(StackEntry* entry); f32 LogUtils_CheckFloatRange(const char* exp, s32 line, const char* valueName, f32 value, const char* minName, f32 min, diff --git a/src/boot/stackcheck.c b/src/boot/stackcheck.c index 8451566787..f9d0c6c87d 100644 --- a/src/boot/stackcheck.c +++ b/src/boot/stackcheck.c @@ -72,7 +72,7 @@ void StackCheck_Cleanup(StackEntry* entry) { } } -StackStatus StackCheck_GetState(StackEntry* entry) { +s32 StackCheck_GetState(StackEntry* entry) { u32* last; u32 used; u32 free;