diff options
author | 2012-09-27 09:04:02 +0000 | |
---|---|---|
committer | 2012-09-27 09:04:02 +0000 | |
commit | 3d46dad1d20007c8399c71af4d02d0c57092e94a (patch) | |
tree | 2518621175fe5b64181880abff92ee8445b8600e /src/google/protobuf/compiler | |
parent | fcb8a50b5017673a90dd9d7eef9999a101151c30 (diff) |
Use string::size_type instead of int for results of string.find() etc. -- patch from hans
Diffstat (limited to 'src/google/protobuf/compiler')
-rw-r--r-- | src/google/protobuf/compiler/command_line_interface.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/compiler/command_line_interface.cc b/src/google/protobuf/compiler/command_line_interface.cc index 8dac5f42..b9293c97 100644 --- a/src/google/protobuf/compiler/command_line_interface.cc +++ b/src/google/protobuf/compiler/command_line_interface.cc @@ -926,7 +926,7 @@ CommandLineInterface::InterpretArgument(const string& name, string virtual_path; string disk_path; - int equals_pos = parts[i].find_first_of('='); + string::size_type equals_pos = parts[i].find_first_of('='); if (equals_pos == string::npos) { virtual_path = ""; disk_path = parts[i]; |