From c729d930e71421cfbcb0f6ecf79e9910ce0eb431 Mon Sep 17 00:00:00 2001 From: vjpai Date: Fri, 20 Feb 2015 11:40:21 -0800 Subject: [PATCH] signed-unsigned comparison issue --- src/compiler/python_plugin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/python_plugin.cc b/src/compiler/python_plugin.cc index ebe3660619b..05c6b095d8e 100644 --- a/src/compiler/python_plugin.cc +++ b/src/compiler/python_plugin.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(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";