prepare for gcc6 rint() precision degradation
gcc6 returns a float for "rint ((float) val)"
This commit is contained in:
parent
f6fe87d63e
commit
30497db823
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user