summaryrefslogtreecommitdiff
path: root/src/replays.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/replays.c')
-rw-r--r--src/replays.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/replays.c b/src/replays.c
index 2ba389f95..66b664744 100644
--- a/src/replays.c
+++ b/src/replays.c
@@ -130,9 +130,10 @@ s32 func_800051C4(void) {
if (sReplayGhostBufferSize != 0) {
// func_80040174 in mio0_decode.s
- func_80040174((void*) sReplayGhostBuffer, (sReplayGhostBufferSize * 4) + 0x20, (s32) sReplayGhostEncoded);
- phi_v0 =
- mio0encode((s32) sReplayGhostEncoded, (sReplayGhostBufferSize * 4) + 0x20, (s32) gReplayGhostCompressed);
+ func_80040174((void*) sReplayGhostBuffer, (sReplayGhostBufferSize * 4) + 0x20,
+ (s32) (uintptr_t) sReplayGhostEncoded);
+ phi_v0 = mio0encode((uintptr_t) sReplayGhostEncoded, (sReplayGhostBufferSize * 4) + 0x20,
+ (uintptr_t) gReplayGhostCompressed);
return phi_v0 + 0x1e;
}
// Empty buffer used to fall off the end; report zero encoded size (the
@@ -450,7 +451,7 @@ void save_player_replay(void) {
it says "these inputs were played for __ frames" */
prevInputs = prevInputsWCounter & REPLAY_CLEAR_FRAME_COUNTER;
// first frame of inputs
- if ((*sPlayerInputs) == -1) {
+ if ((*sPlayerInputs) == (u32) -1) {
sPlayerInputs[sPlayerInputIdx] = inputs;