blackboxwm: fix build w/ musl-1.2.1 (time64)

This commit is contained in:
Jürgen Buchmüller 2020-12-14 00:03:43 +01:00
parent e3e17e52e1
commit ecf800e751
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- src/Toolbar.cc 2020-12-13 23:57:20.285876509 +0100
+++ src/Toolbar.cc 2020-12-13 23:58:32.570856812 +0100
@@ -44,7 +44,7 @@
{
timeval now;
gettimeofday(&now, 0);
- return (std::max(1000l, ((((resolution - (now.tv_sec % resolution)) * 1000l))
+ return (std::max(static_cast<uint64_t>(1000l), static_cast<uint64_t>((((resolution - (now.tv_sec % resolution)) * 1000l))
- (now.tv_usec / 1000l))));
}