diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-27 05:42:04 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-27 05:42:04 +0200 |
commit | 7c7f4d344eef80c6ee672c3c57dedcb1848f3ef4 (patch) | |
tree | 354db8e54b71f242141189e19748e5f782f9dabf /qfunctionconfigurator | |
parent | 7d4abcf53b63c543721017d5cf787d5b689a8174 (diff) |
qfc: move division last
Diffstat (limited to 'qfunctionconfigurator')
-rwxr-xr-x[-rw-r--r--] | qfunctionconfigurator/functionconfig.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qfunctionconfigurator/functionconfig.cpp b/qfunctionconfigurator/functionconfig.cpp index b597a902..c97aec16 100644..100755 --- a/qfunctionconfigurator/functionconfig.cpp +++ b/qfunctionconfigurator/functionconfig.cpp @@ -136,7 +136,7 @@ void Map::reload() { const n y_ = std::min<n>(max_y, std::max<n>(y, 0)); - data[x] = y_ / max_y * integral_max; + data[x] = y_ * integral_max / max_y; } } |