summaryrefslogtreecommitdiff
path: root/src/JSystem/JFramework/JFWDisplay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/JSystem/JFramework/JFWDisplay.cpp')
-rw-r--r--src/JSystem/JFramework/JFWDisplay.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/JSystem/JFramework/JFWDisplay.cpp b/src/JSystem/JFramework/JFWDisplay.cpp
index 4d62a8f483..7f775989b8 100644
--- a/src/JSystem/JFramework/JFWDisplay.cpp
+++ b/src/JSystem/JFramework/JFWDisplay.cpp
@@ -9,6 +9,7 @@
#include "dolphin/gx.h"
#include <dolphin/vi.h>
#include "global.h"
+#include "stdint.h"
void JFWDisplay::ctor_subroutine(bool enableAlpha) {
mEnableAlpha = enableAlpha;
@@ -362,8 +363,8 @@ static void waitForTick(u32 p1, u16 p2) {
if (!OSReceiveMessage(JUTVideo::getManager()->getMessageQueue(), &msg, OS_MESSAGE_BLOCK)) {
msg = 0;
}
- } while (((int)msg - (int)nextCount) < 0);
- nextCount = (int)msg + uVar1;
+ } while (((intptr_t)msg - (intptr_t)nextCount) < 0);
+ nextCount = (intptr_t)msg + uVar1;
}
}