diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2015-01-22 23:42:15 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2015-01-22 23:42:15 +0100 |
commit | 3d4cba49014a1822b95d4af294e661ef2d4acb53 (patch) | |
tree | 5c5eca8c12c55099fbdcaac823503f764e7edbe3 /test/cpp | |
parent | 43598ccc39adfdc1c8019f28222b6d06b2ca632a (diff) |
kNumResponseMessages is an int, so i is doing signedness mismatch.
Diffstat (limited to 'test/cpp')
-rw-r--r-- | test/cpp/interop/client.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cpp/interop/client.cc b/test/cpp/interop/client.cc index 04cfeb86cb..2a18ddb72e 100644 --- a/test/cpp/interop/client.cc +++ b/test/cpp/interop/client.cc @@ -188,7 +188,7 @@ void DoResponseStreamingWithSlowConsumer( grpc::ClientContext context; StreamingOutputCallRequest request; - for (unsigned int i = 0; i < kNumResponseMessages; ++i) { + for (int i = 0; i < kNumResponseMessages; ++i) { ResponseParameters* response_parameter = request.add_response_parameters(); response_parameter->set_size(kResponseMessageSize); } @@ -196,7 +196,7 @@ void DoResponseStreamingWithSlowConsumer( std::unique_ptr<grpc::ClientReader<StreamingOutputCallResponse>> stream( stub->StreamingOutputCall(&context, &request)); - unsigned int i = 0; + int i = 0; while (stream->Read(&response)) { GPR_ASSERT(response.payload().body() == grpc::string(kResponseMessageSize, '\0')); |