Merge pull request #663 from vjpai/python

Minor changes for compatibility across different compilers
pull/675/head
Nicolas Noble 10 years ago
commit d539f69c72
  1. 2
      src/compiler/python_plugin.cc
  2. 2
      test/cpp/qps/client.cc

@ -63,7 +63,7 @@ class PythonGrpcGenerator : public CodeGenerator {
// Get output file name.
string file_name;
static const int proto_suffix_length = 6; // length of ".proto"
if (file->name().size() > proto_suffix_length &&
if (file->name().size() > static_cast<size_t>(proto_suffix_length) &&
file->name().find_last_of(".proto") == file->name().size() - 1) {
file_name = file->name().substr(
0, file->name().size() - proto_suffix_length) + "_pb2.py";

@ -127,7 +127,7 @@ void RunTest(const int client_threads, const int client_channels,
}
std::vector<std::thread> threads; // Will add threads when ready to execute
std::vector<::gpr_histogram *> thread_stats(client_threads);
std::vector< ::gpr_histogram *> thread_stats(client_threads);
TestService::Stub *stub_stats = channels[0].get_stub();
grpc::ClientContext context_stats_begin;

Loading…
Cancel
Save