summaryrefslogtreecommitdiff
blob: 32de7c4dee4ea64678ae0a288683d21efe937786 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Felipe Sateler <fsateler@debian.org>
Date: Fri, 1 Jul 2016 19:06:31 -0400
Subject: Avoid ambiguity in div invocation

Be specific and use int version.
Fixes build failure with gcc >= 6
---
 AutoFilter.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/AutoFilter.cc b/AutoFilter.cc
index fc087d0..bd6b12f 100644
--- a/AutoFilter.cc
+++ b/AutoFilter.cc
@@ -69,7 +69,7 @@ AutoFilter::activate()
 void
 AutoFilter::cycle (uint frames)
 {
-	div_t qr = div (frames, blocksize);
+	div_t qr = div ((int)frames, (int)blocksize);
 	int blocks = qr.quot;
 	if (qr.rem) ++blocks;
 	double over_blocks = 1./blocks;