We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f9ecc2 commit 94f2494Copy full SHA for 94f2494
src/core/ev.c
@@ -699,7 +699,7 @@ static DWORD WINAPI janet_timeout_body(LPVOID ptr) {
699
DWORD duration = (DWORD)round(tto.sec * 1000);
700
DWORD res = WAIT_TIMEOUT;
701
JanetTimestamp wait_end = ts_now();
702
- for (size_t i = 1; res == WAIT_TIMEOUT && (wait_end - wait_begin) < duration; i++) {
+ for (DWORD i = 1; res == WAIT_TIMEOUT && (wait_end - wait_begin) < duration; i++) {
703
res = WaitForSingleObject(tto.cancel_event, (duration + i));
704
wait_end = ts_now();
705
}
0 commit comments