mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 22:30:30 +01:00
[libaxx] add cmath and use cmath instead of math.h when required
Change-Id: Id839b17d33c69e2e002f370e553ff35246a1bc90
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
#include "go_to_parameter_controller.h"
|
||||
#include "../app.h"
|
||||
#include <assert.h>
|
||||
#include <cmath>
|
||||
|
||||
namespace Sequence {
|
||||
|
||||
bool GoToParameterController::setParameterAtIndex(int parameterIndex, float f) {
|
||||
assert(parameterIndex == 0);
|
||||
return Shared::FunctionGoToParameterController::setParameterAtIndex(parameterIndex, roundf(f));
|
||||
return Shared::FunctionGoToParameterController::setParameterAtIndex(parameterIndex, std::round(f));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user