Skip to content

Commit

Permalink
Toolbar.cc: fix build for systems where time_t != long
Browse files Browse the repository at this point in the history
  • Loading branch information
abatyiev committed Feb 22, 2024
1 parent 9b1a8e4 commit d45570b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Toolbar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ long nextTimeout(int resolution)
{
timeval now;
gettimeofday(&now, 0);
return (std::max(1000l, ((((resolution - (now.tv_sec % resolution)) * 1000l))
- (now.tv_usec / 1000l))));
return (std::max<long>(1000l, ((((resolution - (now.tv_sec % resolution)) * 1000l))
- (now.tv_usec / 1000l))));
}


Expand Down

0 comments on commit d45570b

Please sign in to comment.