summaryrefslogtreecommitdiffstats
path: root/x11-wm/blackbox/files/extra-patch-src_Toolbar.cc
blob: a28ee9cfe50564aa616f3f5d7d927e45cf6aa26f (plain)
1
2
3
4
5
6
7
8
9
10
11
--- src/Toolbar.cc.orig	2015-05-11 11:54:54 UTC
+++ src/Toolbar.cc
@@ -44,7 +44,7 @@ long nextTimeout(int resolution)
 {
   timeval now;
   gettimeofday(&now, 0);
-  return (std::max(1000l, ((((resolution - (now.tv_sec % resolution)) * 1000l))
+  return (std::max(1000ll, ((((resolution - (now.tv_sec % resolution)) * 1000l))
                            - (now.tv_usec / 1000l))));
 }
 
OpenPOWER on IntegriCloud