diff options
author | B. Watson <yalhcru@gmail.com> | 2017-06-22 16:29:44 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-07-01 07:42:25 +0700 |
commit | 218b6c3c8a1726e7cc6490e1b93bcbb34753dab0 (patch) | |
tree | 508b346fb3cb813bdb05a526745557d2037a906b /audio/caps/gcc7fix.diff | |
parent | 78eba95f4a49e419f0d3af4cdbb77d99390295b9 (diff) |
audio/caps: Fix build for -current.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'audio/caps/gcc7fix.diff')
-rw-r--r-- | audio/caps/gcc7fix.diff | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/audio/caps/gcc7fix.diff b/audio/caps/gcc7fix.diff new file mode 100644 index 000000000000..13080687d8a8 --- /dev/null +++ b/audio/caps/gcc7fix.diff @@ -0,0 +1,12 @@ +diff -Naur caps-0.9.24/AutoFilter.cc caps-0.9.24.patched/AutoFilter.cc +--- caps-0.9.24/AutoFilter.cc 2014-11-10 03:12:26.000000000 -0500 ++++ caps-0.9.24.patched/AutoFilter.cc 2017-06-22 16:26:26.421820579 -0400 +@@ -69,7 +69,7 @@ + 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; |