mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[libaxx] add cmath and use cmath instead of math.h when required
Change-Id: Id839b17d33c69e2e002f370e553ff35246a1bc90
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "../apps_container.h"
|
||||
#include "../constant.h"
|
||||
#include <assert.h>
|
||||
#include <cmath>
|
||||
|
||||
using namespace Shared;
|
||||
|
||||
@@ -37,7 +38,7 @@ bool StoreController::setDataAtLocation(float floatBody, int columnIndex, int ro
|
||||
if (floatBody < 0) {
|
||||
return false;
|
||||
}
|
||||
m_store->set(roundf(floatBody), columnIndex, rowIndex-1);
|
||||
m_store->set(std::round(floatBody), columnIndex, rowIndex-1);
|
||||
return true;
|
||||
}
|
||||
return Shared::StoreController::setDataAtLocation(floatBody, columnIndex, rowIndex);
|
||||
|
||||
Reference in New Issue
Block a user