Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private bool SetTimer(uint actualDuration)
// shortest time of all TimerQueues
private static void ReplaceNextSetTimeout(long shortestDueTimeMs, long currentTimeMs)
{
if (shortestDueTimeMs == int.MaxValue)
if (shortestDueTimeMs == long.MaxValue)
{
return;
}
Expand All @@ -85,7 +85,7 @@ private static long ShortestDueTime()
{
if (s_scheduledTimers == null)
{
return int.MaxValue;
return long.MaxValue;
}

long shortestDueTimeMs = long.MaxValue;
Expand All @@ -112,7 +112,7 @@ private static long PumpTimerQueue(long currentTimeMs)
List<TimerQueue> timersToFire = s_scheduledTimersToFire!;
List<TimerQueue> timers;
timers = s_scheduledTimers!;
long shortestDueTimeMs = int.MaxValue;
long shortestDueTimeMs = long.MaxValue;
for (int i = timers.Count - 1; i >= 0; --i)
{
TimerQueue timer = timers[i];
Expand Down