File: fix_ftbfs.patch

package info (click to toggle)
cclive 0.9.3-0.3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,432 kB
  • sloc: sh: 11,339; cpp: 3,198; makefile: 138
file content (22 lines) | stat: -rw-r--r-- 719 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Fix FTBFS with Boost 1.67
 In Boost 1.67 parameters passed to time constructors must be
 integral. This does not change the previos behaviour, since
 the count was already stored as an integer anyway. The only
 different is that now the conversion must be explicit.

Author: Giovanni Mascellani <gio@debian.org>
Bug-Debian: https://bugs.debian.org/914056

---

--- cclive-0.9.3.orig/src/cc/progressbar.h
+++ cclive-0.9.3/src/cc/progressbar.h
@@ -316,7 +316,7 @@ private:
 
   static inline std::string eta_from_seconds(const double s)
   {
-    const pt::time_duration& td = pt::seconds(s);
+    const pt::time_duration& td = pt::seconds(static_cast<long>(s));
     return pt::to_simple_string(td);
   }