Skip to content

Commit

Permalink
static_cast<long> for arm and cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
gansm committed Jun 18, 2023
1 parent e5259b1 commit 0534e95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion final/eventloop/timer_monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ std::mutex timer_nodes_mutex{};
const auto seconds{std::chrono::duration_cast<std::chrono::seconds>(duration)};
duration -= seconds;

return timespec{static_cast<time_t>(seconds.count()), duration.count()};
return timespec{ static_cast<time_t>(seconds.count())
, static_cast<long>(duration.count()) };
}

//----------------------------------------------------------------------
Expand Down

0 comments on commit 0534e95

Please sign in to comment.