blob: 68f9484f953f42b5c385afe0d5d6bf67b722848b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
Description: Fix build with gcc6
Author: Jaromír Mikeš <mira.mikes@seznam.cz>
Forwarded: no
Index: ardour/libs/ardour/parameter_descriptor.cc
===================================================================
--- ardour.orig/libs/ardour/parameter_descriptor.cc
+++ ardour/libs/ardour/parameter_descriptor.cc
@@ -178,8 +178,8 @@ ParameterDescriptor::update_steps()
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.f, rintf (step));
+ largestep = std::max(1.f, rintf (largestep));
}
}
}
|