mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-07-03 00:06:02 +00:00
Fix integer truncation warning on MSVC
This commit is contained in:
parent
54d46ca80f
commit
c88b1bcf8e
@ -287,7 +287,7 @@ static void inputSendThreadProc(void* context) {
|
|||||||
|
|
||||||
// Delay for batching if required
|
// Delay for batching if required
|
||||||
if (now < lastControllerPacketTime + CONTROLLER_BATCHING_INTERVAL_MS) {
|
if (now < lastControllerPacketTime + CONTROLLER_BATCHING_INTERVAL_MS) {
|
||||||
PltSleepMs(lastControllerPacketTime + CONTROLLER_BATCHING_INTERVAL_MS - now);
|
PltSleepMs((int)(lastControllerPacketTime + CONTROLLER_BATCHING_INTERVAL_MS - now));
|
||||||
now = PltGetMillis();
|
now = PltGetMillis();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -346,7 +346,7 @@ static void inputSendThreadProc(void* context) {
|
|||||||
|
|
||||||
// Delay for batching if required
|
// Delay for batching if required
|
||||||
if (now < lastMousePacketTime + MOUSE_BATCHING_INTERVAL_MS) {
|
if (now < lastMousePacketTime + MOUSE_BATCHING_INTERVAL_MS) {
|
||||||
PltSleepMs(lastMousePacketTime + MOUSE_BATCHING_INTERVAL_MS - now);
|
PltSleepMs((int)(lastMousePacketTime + MOUSE_BATCHING_INTERVAL_MS - now));
|
||||||
now = PltGetMillis();
|
now = PltGetMillis();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -400,7 +400,7 @@ static void inputSendThreadProc(void* context) {
|
|||||||
|
|
||||||
// Delay for batching if required
|
// Delay for batching if required
|
||||||
if (now < lastMousePacketTime + MOUSE_BATCHING_INTERVAL_MS) {
|
if (now < lastMousePacketTime + MOUSE_BATCHING_INTERVAL_MS) {
|
||||||
PltSleepMs(lastMousePacketTime + MOUSE_BATCHING_INTERVAL_MS - now);
|
PltSleepMs((int)(lastMousePacketTime + MOUSE_BATCHING_INTERVAL_MS - now));
|
||||||
now = PltGetMillis();
|
now = PltGetMillis();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user