From 78e528d6fb61068bf1320073c7a440ad2d920b2f Mon Sep 17 00:00:00 2001 From: Roman971 <32455037+Roman971@users.noreply.github.com> Date: Sun, 2 Oct 2022 23:40:09 +0200 Subject: Various minor fixes (#1383) * Swap REGION_US and REGION_JP * Fix a few missing EXCH_ITEM enum values * Remove unnecessary casts on alloc functions * Fix a double slash in the spec file * Swap top and bottom args in StackCheck_Init * Remove some unnecessary & in array references * Run formatter * Fix the comments for US and JP codes --- src/code/fault.c | 2 +- src/code/z_debug.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/code') diff --git a/src/code/fault.c b/src/code/fault.c index c2cfe1631..95144a527 100644 --- a/src/code/fault.c +++ b/src/code/fault.c @@ -1271,7 +1271,7 @@ void Fault_Init(void) { sFaultInstance->autoScroll = false; gFaultMgr.faultHandlerEnabled = true; osCreateMesgQueue(&sFaultInstance->queue, &sFaultInstance->msg, 1); - StackCheck_Init(&sFaultThreadInfo, &sFaultStack, STACK_TOP(sFaultStack), 0, 0x100, "fault"); + StackCheck_Init(&sFaultThreadInfo, sFaultStack, STACK_TOP(sFaultStack), 0, 0x100, "fault"); osCreateThread(&sFaultInstance->thread, THREAD_ID_FAULT, Fault_ThreadEntry, 0, STACK_TOP(sFaultStack), THREAD_PRI_FAULT); osStartThread(&sFaultInstance->thread); diff --git a/src/code/z_debug.c b/src/code/z_debug.c index 45e8dc4df..f654b0d69 100644 --- a/src/code/z_debug.c +++ b/src/code/z_debug.c @@ -96,7 +96,7 @@ char sRegGroupChars[REG_GROUPS] = { void func_800636C0(void) { s32 i; - gGameInfo = (GameInfo*)SystemArena_MallocDebug(sizeof(GameInfo), "../z_debug.c", 260); + gGameInfo = SystemArena_MallocDebug(sizeof(GameInfo), "../z_debug.c", 260); gGameInfo->regPage = 0; gGameInfo->regGroup = 0; gGameInfo->regCur = 0; -- cgit v1.2.3