calling div on unsigned is ambiguous, so force it into a known call (clang)
This commit is contained in:
parent
bcd6fe806f
commit
46c639f81a
12
audio/caps-plugins/patches/patch-AutoFilter_cc
Normal file
12
audio/caps-plugins/patches/patch-AutoFilter_cc
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-AutoFilter_cc,v 1.1 2017/04/30 22:37:28 espie Exp $
|
||||
--- AutoFilter.cc.orig
|
||||
+++ 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;
|
Loading…
x
Reference in New Issue
Block a user