Skip to content

Commit 56f0c2b

Browse files
Update Scheduler.cpp
1 parent db58a1c commit 56f0c2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wniemiec/task/cpp/Scheduler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ unsigned long Scheduler::set_interval(const std::function<void(void)>& routine,
8383

8484
void* Scheduler::interval_control_routine(void* arg)
8585
{
86-
long interval = (long) arg;
86+
long interval = *reinterpret_cast<long*>(arg);
8787
unsigned long id = current_routine_id;
8888
const std::function<void(void)> routine = current_routine;
8989

0 commit comments

Comments
 (0)