mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
[libaxx] add cmath and use cmath instead of math.h when required
Change-Id: Id839b17d33c69e2e002f370e553ff35246a1bc90
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "interval_parameter_controller.h"
|
||||
#include <cmath>
|
||||
|
||||
using namespace Shared;
|
||||
|
||||
@@ -24,7 +25,7 @@ bool IntervalParameterController::setParameterAtIndex(int parameterIndex, float
|
||||
app()->displayWarning(I18n::Message::ForbiddenValue);
|
||||
return false;
|
||||
}
|
||||
float parameter = roundf(f);
|
||||
float parameter = std::round(f);
|
||||
if (parameterIndex == 2 && parameter == 0.0f) {
|
||||
parameter = 1.0f;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user