@@ -38,8 +38,8 @@ LongHistogramAggregation::LongHistogramAggregation(const AggregationConfig *aggr
38
38
point_data_.sum_ = (int64_t )0 ;
39
39
point_data_.count_ = 0 ;
40
40
point_data_.record_min_max_ = record_min_max_;
41
- point_data_.min_ = std::numeric_limits<int64_t >::max ();
42
- point_data_.max_ = std::numeric_limits<int64_t >::min ();
41
+ point_data_.min_ = ( std::numeric_limits<int64_t >::max) ();
42
+ point_data_.max_ = ( std::numeric_limits<int64_t >::min) ();
43
43
}
44
44
45
45
LongHistogramAggregation::LongHistogramAggregation (HistogramPointData &&data)
@@ -58,8 +58,8 @@ void LongHistogramAggregation::Aggregate(int64_t value,
58
58
point_data_.sum_ = nostd::get<int64_t >(point_data_.sum_ ) + value;
59
59
if (record_min_max_)
60
60
{
61
- point_data_.min_ = std::min (nostd::get<int64_t >(point_data_.min_ ), value);
62
- point_data_.max_ = std::max (nostd::get<int64_t >(point_data_.max_ ), value);
61
+ point_data_.min_ = ( std::min) (nostd::get<int64_t >(point_data_.min_ ), value);
62
+ point_data_.max_ = ( std::max) (nostd::get<int64_t >(point_data_.max_ ), value);
63
63
}
64
64
size_t index = BucketBinarySearch (value, point_data_.boundaries_ );
65
65
point_data_.counts_ [index ] += 1 ;
@@ -118,8 +118,8 @@ DoubleHistogramAggregation::DoubleHistogramAggregation(const AggregationConfig *
118
118
point_data_.sum_ = 0.0 ;
119
119
point_data_.count_ = 0 ;
120
120
point_data_.record_min_max_ = record_min_max_;
121
- point_data_.min_ = std::numeric_limits<double >::max ();
122
- point_data_.max_ = std::numeric_limits<double >::min ();
121
+ point_data_.min_ = ( std::numeric_limits<double >::max) ();
122
+ point_data_.max_ = ( std::numeric_limits<double >::min) ();
123
123
}
124
124
125
125
DoubleHistogramAggregation::DoubleHistogramAggregation (HistogramPointData &&data)
@@ -138,8 +138,8 @@ void DoubleHistogramAggregation::Aggregate(double value,
138
138
point_data_.sum_ = nostd::get<double >(point_data_.sum_ ) + value;
139
139
if (record_min_max_)
140
140
{
141
- point_data_.min_ = std::min (nostd::get<double >(point_data_.min_ ), value);
142
- point_data_.max_ = std::max (nostd::get<double >(point_data_.max_ ), value);
141
+ point_data_.min_ = ( std::min) (nostd::get<double >(point_data_.min_ ), value);
142
+ point_data_.max_ = ( std::max) (nostd::get<double >(point_data_.max_ ), value);
143
143
}
144
144
size_t index = BucketBinarySearch (value, point_data_.boundaries_ );
145
145
point_data_.counts_ [index ] += 1 ;
0 commit comments