Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 925104
Collapse All | Expand All

(-)a/src/Toolbar.cc (-2 / +2 lines)
Lines 45-52 long nextTimeout(int resolution) Link Here
45
{
45
{
46
  timeval now;
46
  timeval now;
47
  gettimeofday(&now, 0);
47
  gettimeofday(&now, 0);
48
  return (std::max(1000l, ((((resolution - (now.tv_sec % resolution)) * 1000l))
48
  return (std::max<long>(1000l, ((((resolution - (now.tv_sec % resolution)) * 1000l))
49
                           - (now.tv_usec / 1000l))));
49
                                - (now.tv_usec / 1000l))));
50
}
50
}
51
51
52
52

Return to bug 925104