* updated knights (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / x11 / blackbox / hotfix.patch
blob2a7a310422babad8fbc6cae81f73509e28a9faa6
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../blackbox/hotfix.patch
5 # Copyright (C) 2016 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- blackbox-0.71.1/src/Toolbar.cc.vanilla 2016-12-09 10:03:37.825174435 +0000
18 +++ blackbox-0.71.1/src/Toolbar.cc 2016-12-09 10:04:20.329175165 +0000
19 @@ -44,7 +44,7 @@
21 timeval now;
22 gettimeofday(&now, 0);
23 - return (std::max(1000l, ((((resolution - (now.tv_sec % resolution)) * 1000l))
24 + return (std::max((time_t)1000, ((((resolution - (now.tv_sec % resolution)) * 1000l))
25 - (now.tv_usec / 1000l))));