Introduce uintptr_t

This commit is contained in:
Ryan Dwyer committed 2022-12-07 21:00:03 +10:00
1 parent 45524f06b2
commit ba11c5634b
95 files changed
+3297 -3285

No files matched your search

+3 -3
View File
@@ -1718,8 +1718,8 @@ Gfx *lvRender(Gfx *gdl)
gDPSetScissor(gdl++, G_SC_NON_INTERLACE, 0, 0, viGetWidth(), viGetHeight());
#if VERSION < VERSION_NTSC_1_0
if ((u32)gdl < (u32)g_GfxBuffers[g_GfxActiveBufferIndex]
|| (u32)gdl > (u32)g_GfxBuffers[g_GfxActiveBufferIndex + 1]) {
if ((uintptr_t)gdl < (uintptr_t)g_GfxBuffers[g_GfxActiveBufferIndex]
|| (uintptr_t)gdl > (uintptr_t)g_GfxBuffers[g_GfxActiveBufferIndex + 1]) {
crashSetMessage("lv.c Master DL overrun!");
CRASH();
}
@@ -1958,7 +1958,7 @@ s32 lvGetSlowMotionType(void)
if (actual != expected) {
u32 *ptr = (u32 *)&rspbootTextStart;
u32 *end = (u32 *)(u32)ptr + 1024;
u32 *end = (u32 *)(uintptr_t)ptr + 1024;
while (ptr < end) {
*ptr += 8;