diff --git a/Framework/Kernel/src/VectorHelper.cpp b/Framework/Kernel/src/VectorHelper.cpp index 7c56ee11a74cf01aefd49cbe3b3f885aa4ad610f..5d05d3e126e5cd078defe7493f4d4879f6a78d26 100644 --- a/Framework/Kernel/src/VectorHelper.cpp +++ b/Framework/Kernel/src/VectorHelper.cpp @@ -585,7 +585,7 @@ double runAverage(size_t index, size_t startIndex, size_t endIndex, if (iStart > iEnd) { // start and end get into the same bin weight1 = 0; weight0 = (end - start) / - (binBndrs->operator[](iStart)-binBndrs->operator[](iStart - 1)); + (binBndrs->operator[](iStart)-binBndrs->operator[](iStart - 1)); } } else { // integer indexes and functions defined in the bin centers iStart = index - static_cast<size_t>(halfWidth);