[apps/statistics] Allow non integer value sizes

This commit is contained in:
Léa Saviot
2018-05-21 10:06:28 +02:00
parent 332564318b
commit dfca5d8438
2 changed files with 1 additions and 3 deletions

View File

@@ -192,7 +192,7 @@ double Store::defaultValue(int i, int j) {
}
double Store::sumOfValuesBetween(double x1, double x2) {
int result = 0;
double result = 0;
for (int k = 0; k < m_numberOfPairs; k++) {
if (m_data[0][k] < x2 && x1 <= m_data[0][k]) {
result += m_data[1][k];