aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp
diff options
context:
space:
mode:
authorGravatar Yuxuan Li <yuxuanli@google.com>2017-05-08 06:18:52 +0000
committerGravatar Yuxuan Li <yuxuanli@google.com>2017-05-08 06:24:34 +0000
commit85d3a539053d6960473bc78a2818d94b7953c197 (patch)
tree50cf0f3ac985a5f14caf4e9cc63cca258fde5206 /test/cpp
parent87827e03aa01ba12829b88a775b946e32eadcf3a (diff)
change gpr_atm to int
Diffstat (limited to 'test/cpp')
-rw-r--r--test/cpp/qps/client_async.cc2
-rw-r--r--test/cpp/qps/server_async.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/cpp/qps/client_async.cc b/test/cpp/qps/client_async.cc
index d9cda9fb07..d0beab354c 100644
--- a/test/cpp/qps/client_async.cc
+++ b/test/cpp/qps/client_async.cc
@@ -208,7 +208,7 @@ class AsyncClient : public ClientImpl<StubType, RequestType> {
int GetPollCount() override {
int count = 0;
for (auto cq = cli_cqs_.begin(); cq != cli_cqs_.end(); cq++) {
- count += (int)grpc_get_cq_poll_num((*cq)->cq());
+ count += grpc_get_cq_poll_num((*cq)->cq());
}
return count;
}
diff --git a/test/cpp/qps/server_async.cc b/test/cpp/qps/server_async.cc
index 4f0b1f54d7..812c80f1b7 100644
--- a/test/cpp/qps/server_async.cc
+++ b/test/cpp/qps/server_async.cc
@@ -157,7 +157,7 @@ class AsyncQpsServerTest final : public grpc::testing::Server {
int GetPollCount() override {
int count = 0;
for (auto cq = srv_cqs_.begin(); cq != srv_cqs_.end(); cq++) {
- count += (int)grpc_get_cq_poll_num((*cq)->cq());
+ count += grpc_get_cq_poll_num((*cq)->cq());
}
return count;
}