diff options
author | Sudokamikaze | 2016-12-21 19:10:36 +0200 |
---|---|---|
committer | Sudokamikaze | 2016-12-21 19:10:36 +0200 |
commit | 76c8a030e224af766e0f2eb323983c17c055464a (patch) | |
tree | 348c1c2e56e7355e60b4a3d28899700c757367e4 /0001-Avoid-ambiguity-in-div-invocation.patch | |
download | aur-lib32-caps.tar.gz |
initial
Diffstat (limited to '0001-Avoid-ambiguity-in-div-invocation.patch')
-rw-r--r-- | 0001-Avoid-ambiguity-in-div-invocation.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/0001-Avoid-ambiguity-in-div-invocation.patch b/0001-Avoid-ambiguity-in-div-invocation.patch new file mode 100644 index 000000000000..32de7c4dee4e --- /dev/null +++ b/0001-Avoid-ambiguity-in-div-invocation.patch @@ -0,0 +1,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; |