diff options
| author | TakaRikka <38417346+TakaRikka@users.noreply.github.com> | 2024-01-19 16:22:19 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-20 02:22:19 +0200 |
| commit | 981cfe7283c0a39b8d1845d8ba59f3bb1e192932 (patch) | |
| tree | 147c0280ee1231529e52039cbef26f2a6439744f /src/m_Do/m_Do_printf.cpp | |
| parent | f97fc769df40a69b12ca9b28be389b236400dcdb (diff) | |
almost all of dolphin matched (#2036)
* TRK full match
* remove trk asm
* ar done
* cleanup some dolphin headers
* more dolphin cleanup
* cleanup / GD fully matched
* almost all of GX fully matched
* GX / Mtx full matched
* most of OS done
* pad done
* most of VI
* remove asm
* forgot couple vec funcs
* couple JUtility matches
Diffstat (limited to 'src/m_Do/m_Do_printf.cpp')
| -rw-r--r-- | src/m_Do/m_Do_printf.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/m_Do/m_Do_printf.cpp b/src/m_Do/m_Do_printf.cpp index dffeefeb7b..9958d705d2 100644 --- a/src/m_Do/m_Do_printf.cpp +++ b/src/m_Do/m_Do_printf.cpp @@ -7,7 +7,7 @@ #include "stdio.h" #include "dol2asm.h" #include "dolphin/base/PPCArch.h" -#include "dolphin/os/OS.h" +#include "dolphin/os.h" #include "m_Do/m_Do_ext.h" /* 80450B98-80450B9C -00001 0004+00 0/0 6/6 0/0 .sbss None */ @@ -131,7 +131,7 @@ void mDoPrintf_vprintf(char const* fmt, va_list args) { mDoPrintf_vprintf_Interrupt(fmt, args); } else { u8* stackPtr = OSGetStackPointer(); - if (stackPtr < currentThread->stack_end + 0xA00 || stackPtr > currentThread->stack_base) { + if (stackPtr < (u8*)currentThread->stack_end + 0xA00 || stackPtr > currentThread->stack_base) { mDoPrintf_vprintf_Interrupt(fmt, args); } else { mDoPrintf_vprintf_Thread(fmt, args); |
