mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:07:34 +00:00
CEventLoop: Avoid undefined evaluation order in register_timer().
This commit is contained in:
parent
67fe583f6a
commit
66646081b7
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ int CEventLoop::register_timer(CObject& object, int milliseconds, bool should_re
|
||||||
int timer_id = ++s_next_timer_id; // FIXME: This will eventually wrap around.
|
int timer_id = ++s_next_timer_id; // FIXME: This will eventually wrap around.
|
||||||
ASSERT(timer_id); // FIXME: Aforementioned wraparound.
|
ASSERT(timer_id); // FIXME: Aforementioned wraparound.
|
||||||
timer->timer_id = timer_id;
|
timer->timer_id = timer_id;
|
||||||
s_timers->set(timer->timer_id, move(timer));
|
s_timers->set(timer_id, move(timer));
|
||||||
return timer_id;
|
return timer_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue