From 7b1cbbd50ee1a750fdf6383dfd95216bc70a86bf Mon Sep 17 00:00:00 2001 From: Jisi Liu Date: Thu, 31 Mar 2016 15:38:10 -0700 Subject: Fix signed-compare warning. --- python/google/protobuf/pyext/message.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(actual_size) != fields.size() && (PyList_SetSlice(all_fields.get(), actual_size, fields.size(), NULL) < 0)) { return NULL; -- cgit v1.2.3