Skip to content

Commit 96da55a

Browse files
ktfdavidrohr
andauthored
Update Common/MathUtils/include/MathUtils/detail/StatAccumulator.h
Co-authored-by: David Rohr <github@jwdt.org>
1 parent 8bfcd00 commit 96da55a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Common/MathUtils/include/MathUtils/detail/StatAccumulator.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct StatAccumulator {
4242
wsum += w;
4343
n++;
4444
}
45-
double getMean() const { return wsum > 0. ? sum / wsum : double{}; }
45+
double getMean() const { return wsum > 0. ? sum / wsum : double{0}; }
4646

4747
#ifndef GPUCA_GPUCODE_DEVICE
4848
template <typename T = float>

0 commit comments

Comments
 (0)