fix unsigned comparison bug (heh)

This commit is contained in:
Arisotura 2023-03-26 22:57:04 +02:00
parent 29e2c62b66
commit 2d131dd755
1 changed files with 2 additions and 2 deletions

View File

@ -708,9 +708,9 @@ void ProcessMirrorHost()
}
}
}*/
u32 clientframes = *(u32*)event.packet->data;
s32 clientframes = *(s32*)event.packet->data;
//printf("[SYNC] HOST=%d CLIENT=%d\n", NDS::NumFrames, clientframes);
if (clientframes < (NDS::NumFrames - 16))
if (clientframes < (((s32)NDS::NumFrames) - 16))
{
event.peer->data = (void*)1;
block = true;