Skip to content

Commit

Permalink
Update Scheduler.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
williamniemiec authored Aug 12, 2021
1 parent 56f0c2b commit ffec5ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wniemiec/task/cpp/Scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void Scheduler::initialize_routine_id()

void* Scheduler::delay_control_routine(void* arg)
{
long delay = (long) arg;
long delay = *reinterpret_cast<long*>(arg);
unsigned long id = current_routine_id;
const std::function<void(void)> routine = current_routine;

Expand Down

0 comments on commit ffec5ed

Please sign in to comment.