summaryrefslogtreecommitdiff
path: root/src/code
diff options
context:
space:
mode:
authorRoman971 <32455037+Roman971@users.noreply.github.com>2022-10-02 23:40:09 +0200
committerGitHub <noreply@github.com>2022-10-02 17:40:09 -0400
commit78e528d6fb61068bf1320073c7a440ad2d920b2f (patch)
tree2ba11b171ce7abd7a4a161dc81bf3dea10e74a3c /src/code
parenta2c8eabbc5fc631a9f93a597205518feac0c40df (diff)
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
Diffstat (limited to 'src/code')
-rw-r--r--src/code/fault.c2
-rw-r--r--src/code/z_debug.c2
2 files changed, 2 insertions, 2 deletions
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;