Skip to content

Commit

Permalink
fix msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle committed Sep 9, 2024
1 parent 6e58ab6 commit 628cbe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ylt/metric/summary_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class summary_impl {
--arr[pos];
int upper = (pos < bucket_size / 2) ? (bucket_size / 2) : (bucket_size);
int lower = (pos < bucket_size / 2) ? (0) : (bucket_size / 2);
for (int delta = 1, lim = std::max(upper - pos, pos - lower + 1);
for (int delta = 1, lim = (std::max)(upper - pos, pos - lower + 1);
delta < lim; ++delta) {
if (pos + delta < upper) {
if (++arr[pos + delta] <= near_uint32_max) {
Expand Down

0 comments on commit 628cbe8

Please sign in to comment.