ardour: fix gcc6 build
This commit is contained in:
parent
7783dc0731
commit
932c6a3ce3
1 changed files with 16 additions and 0 deletions
16
srcpkgs/ardour/patches/fix-gcc6-ambigous_max.patch
Normal file
16
srcpkgs/ardour/patches/fix-gcc6-ambigous_max.patch
Normal file
|
@ -0,0 +1,16 @@
|
|||
The value 1.0 without f is a double constant and gcc6 complains
|
||||
about a not existing template for max(double,float).
|
||||
|
||||
--- libs/ardour/parameter_descriptor.cc 2016-10-04 09:19:13.780997674 +0200
|
||||
+++ libs/ardour/parameter_descriptor.cc 2016-10-04 09:19:45.237999989 +0200
|
||||
@@ -178,8 +178,8 @@
|
||||
largestep = largestep / logf(30.0f);
|
||||
} else if (integer_step) {
|
||||
smallstep = 1.0;
|
||||
- step = std::max(1.0, rint(step));
|
||||
- largestep = std::max(1.0, rint(largestep));
|
||||
+ step = std::max(1.0f, rint(step));
|
||||
+ largestep = std::max(1.0f, rint(largestep));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue