Skip to content

Commit

Permalink
fix one more sign compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruslan Nigmatullin committed Jun 1, 2023
1 parent 7f3687e commit 4a34046
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/src/metrics/data/circular_buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ bool AdaptingCircularBufferCounter::Increment(int32_t index, uint64_t delta)
if (index > end_index_)
{
// Move end, check max size.
if (index + 1 > backing_.Size() + start_index_)
if (index + 1 > static_cast<int32_t>(backing_.Size()) + start_index_)
{
return false;
}
Expand All @@ -147,7 +147,7 @@ bool AdaptingCircularBufferCounter::Increment(int32_t index, uint64_t delta)
else if (index < start_index_)
{
// Move end, check max size.
if (end_index_ + 1 > backing_.Size() + index)
if (end_index_ + 1 > static_cast<int32_t>(backing_.Size()) + index)
{
return false;
}
Expand Down

0 comments on commit 4a34046

Please sign in to comment.