summaryrefslogtreecommitdiff
path: root/src/boot
diff options
context:
space:
mode:
authorcadmic <cadmic24@gmail.com>2025-01-19 18:41:57 -0800
committerGitHub <noreply@github.com>2025-01-19 21:41:57 -0500
commitc3806155c3adbc29f7ab491fc3c28f4ce76bea60 (patch)
tree701edf2b07c744278ce43944a79e971a8d723f75 /src/boot
parentc76d2a8a4dc808b14dbf3aaf442c719e333e126f (diff)
[iQue] Don't use -funsigned-char for z_std_dma (#2427)
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/z_std_dma.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/boot/z_std_dma.c b/src/boot/z_std_dma.c
index ec2aa1f75..2872d127b 100644
--- a/src/boot/z_std_dma.c
+++ b/src/boot/z_std_dma.c
@@ -75,7 +75,7 @@ const char* sDmaMgrFileNames[] = {
* -1 if the first character that does not match has a smaller value in str1 than str2,
* +1 if the first character that does not match has a greater value in str1 than str2
*/
-s32 DmaMgr_StrCmp(const char* str1, const char* str2) {
+s32 DmaMgr_StrCmp(const u8* str1, const u8* str2) {
while (*str1 != '\0') {
if (*str1 > *str2) {
return 1;
@@ -338,7 +338,8 @@ const char* DmaMgr_GetFileName(uintptr_t vrom) {
return "(unknown)";
}
- if (DmaMgr_StrCmp(ret, "kanji") == 0 || DmaMgr_StrCmp(ret, "link_animetion") == 0) {
+ if (DmaMgr_StrCmp((const u8*)ret, (const u8*)"kanji") == 0 ||
+ DmaMgr_StrCmp((const u8*)ret, (const u8*)"link_animetion") == 0) {
// This check may be related to these files being too large to be loaded all at once, however a NULL filename
// does not prevent them from being loaded.
return NULL;
@@ -379,7 +380,8 @@ void DmaMgr_ProcessRequest(DmaRequest* req) {
if (0) {
#if !PLATFORM_GC
// Based on the MM Debug ROM, these strings are part of the condition for the empty if statement below
- if (DmaMgr_StrCmp("", "kanji") != 0 && DmaMgr_StrCmp("", "link_animetion") != 0)
+ if (DmaMgr_StrCmp((const u8*)"", (const u8*)"kanji") != 0 &&
+ DmaMgr_StrCmp((const u8*)"", (const u8*)"link_animetion") != 0)
#endif
{
// The string is defined in .rodata of debug builds but not used, suggesting a debug print is here