Skip to content
Snippets Groups Projects
Commit c729d930 authored by vjpai's avatar vjpai
Browse files

signed-unsigned comparison issue

parent b681d0ad
No related branches found
No related tags found
No related merge requests found
...@@ -63,7 +63,7 @@ class PythonGrpcGenerator : public CodeGenerator { ...@@ -63,7 +63,7 @@ class PythonGrpcGenerator : public CodeGenerator {
// Get output file name. // Get output file name.
string file_name; string file_name;
static const int proto_suffix_length = 6; // length of ".proto" 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().find_last_of(".proto") == file->name().size() - 1) {
file_name = file->name().substr( file_name = file->name().substr(
0, file->name().size() - proto_suffix_length) + "_pb2.py"; 0, file->name().size() - proto_suffix_length) + "_pb2.py";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment