diff --git a/base/statistics.cc b/base/statistics.cc index 94b8852f8..737f8f73b 100644 --- a/base/statistics.cc +++ b/base/statistics.cc @@ -748,7 +748,7 @@ VectorDisplay(std::ostream &stream, _pdf = vec[i] / _total; _cdf += _pdf; } else { - _pdf = _cdf = NAN; + _pdf = _cdf = 0.0; } if (!(myflags & cdf)) { PrintOne(stream, vec[i], subname, subdesc, myprecision,