diff options
author | Jisi Liu <jisi.liu@gmail.com> | 2016-03-31 15:38:10 -0700 |
---|---|---|
committer | Jisi Liu <jisi.liu@gmail.com> | 2016-03-31 15:38:10 -0700 |
commit | 7b1cbbd50ee1a750fdf6383dfd95216bc70a86bf (patch) | |
tree | ed4f5a21c3e6a12feed67ca67125286342ca3b73 /python | |
parent | 012ac9a0a6d025d3fd874414e8646ead0812aa7a (diff) | |
download | protobuf-7b1cbbd50ee1a750fdf6383dfd95216bc70a86bf.tar.gz protobuf-7b1cbbd50ee1a750fdf6383dfd95216bc70a86bf.tar.bz2 protobuf-7b1cbbd50ee1a750fdf6383dfd95216bc70a86bf.zip |
Fix signed-compare warning.
Diffstat (limited to 'python')
-rw-r--r-- | python/google/protobuf/pyext/message.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/google/protobuf/pyext/message.cc b/python/google/protobuf/pyext/message.cc index a8248888..df043818 100644 --- a/python/google/protobuf/pyext/message.cc +++ b/python/google/protobuf/pyext/message.cc @@ -2140,7 +2140,7 @@ static PyObject* ListFields(CMessage* self) { PyList_SET_ITEM(all_fields.get(), actual_size, t.release()); ++actual_size; } - if (actual_size != fields.size() && + if (static_cast<size_t>(actual_size) != fields.size() && (PyList_SetSlice(all_fields.get(), actual_size, fields.size(), NULL) < 0)) { return NULL; |