mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
Explicit std::min/max template usage
This is unfortunately required in several cases: - Sometimes when we use either float and double (this should be changed) - Because KDCoordinate is not an int, so any arithmemtic promotes it to an int - Because we mix pointer differences and ints
This commit is contained in:
@@ -191,8 +191,8 @@ void HistogramController::preinitXRangeParameters() {
|
||||
float maxValue = -FLT_MAX;
|
||||
for (int i = 0; i < Store::k_numberOfSeries; i ++) {
|
||||
if (!m_store->seriesIsEmpty(i)) {
|
||||
minValue = std::min(minValue, m_store->minValue(i));
|
||||
maxValue = std::max(maxValue, m_store->maxValue(i));
|
||||
minValue = std::min<float>(minValue, m_store->minValue(i));
|
||||
maxValue = std::max<float>(maxValue, m_store->maxValue(i));
|
||||
}
|
||||
}
|
||||
m_store->setXMin(minValue);
|
||||
|
||||
Reference in New Issue
Block a user