diff options
author | Noah Eisen <ncteisen@google.com> | 2018-02-09 09:16:55 -0800 |
---|---|---|
committer | Noah Eisen <ncteisen@google.com> | 2018-02-09 09:16:55 -0800 |
commit | be82e64b3debcdb1d9ec6a149fc85af0d46bfb7e (patch) | |
tree | cc5e1234073eb250a2c319b5a4db2919fce060ea /test/cpp/performance | |
parent | 194436342137924b4fb7429bede037a4b5ec7edb (diff) |
Autofix c casts to c++ casts
Diffstat (limited to 'test/cpp/performance')
-rw-r--r-- | test/cpp/performance/writes_per_rpc_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cpp/performance/writes_per_rpc_test.cc b/test/cpp/performance/writes_per_rpc_test.cc index b7d951a86e..0d0ab1891a 100644 --- a/test/cpp/performance/writes_per_rpc_test.cc +++ b/test/cpp/performance/writes_per_rpc_test.cc @@ -217,7 +217,7 @@ static double UnaryPingPong(int request_size, int response_size) { for (int i = (1 << 3) | (1 << 4); i != 0;) { GPR_ASSERT(fixture->cq()->Next(&t, &ok)); GPR_ASSERT(ok); - int tagnum = (int)reinterpret_cast<intptr_t>(t); + int tagnum = static_cast<int>(reinterpret_cast<intptr_t>(t)); GPR_ASSERT(i & (1 << tagnum)); i -= 1 << tagnum; } @@ -230,7 +230,7 @@ static double UnaryPingPong(int request_size, int response_size) { } double writes_per_iteration = - (double)fixture->writes_performed() / (double)kIterations; + static_cast<double>(fixture->writes_performed()) / static_cast<double>(kIterations); fixture.reset(); server_env[0]->~ServerEnv(); |