aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/debug
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-09-05 15:08:39 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-09-05 15:08:39 -0700
commit3e3dd080877be8951ce35f98711b3932291d04bb (patch)
treef273563ba051051c94410de97d36ecb7a9369b75 /test/core/debug
parent07530dbbeb25b89b9fbaaea2c9823d5ea157a038 (diff)
Bounds fixes
Diffstat (limited to 'test/core/debug')
-rw-r--r--test/core/debug/stats_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/debug/stats_test.cc b/test/core/debug/stats_test.cc
index 82ed27cb13..bda580f7ca 100644
--- a/test/core/debug/stats_test.cc
+++ b/test/core/debug/stats_test.cc
@@ -70,7 +70,7 @@ static int FindExpectedBucket(int i, int j) {
return 0;
}
if (j >=
- grpc_stats_histo_bucket_boundaries[i][grpc_stats_histo_buckets[i] - 1]) {
+ grpc_stats_histo_bucket_boundaries[i][grpc_stats_histo_buckets[i]]) {
return grpc_stats_histo_buckets[i] - 1;
}
return std::upper_bound(grpc_stats_histo_bucket_boundaries[i],