diff --git a/src/wniemiec/task/cpp/Scheduler.cpp b/src/wniemiec/task/cpp/Scheduler.cpp index 5f69b58..355a5d7 100644 --- a/src/wniemiec/task/cpp/Scheduler.cpp +++ b/src/wniemiec/task/cpp/Scheduler.cpp @@ -48,7 +48,7 @@ void Scheduler::initialize_routine_id() void* Scheduler::delay_control_routine(void* arg) { - long delay = (long) arg; + long delay = *reinterpret_cast(arg); unsigned long id = current_routine_id; const std::function routine = current_routine;