commit d45570b2317ff8f20642fbda5aa07e8f43b254b0 Author: Andrii Batyiev Date: Thu Feb 22 01:57:55 2024 +0000 Toolbar.cc: fix build for systems where time_t != long diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 8ccad20..fc19f34 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc @@ -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(1000l, ((((resolution - (now.tv_sec % resolution)) * 1000l)) + - (now.tv_usec / 1000l)))); }