Commit 7b1cbbd5 authored by Jisi Liu's avatar Jisi Liu

Fix signed-compare warning.

parent 012ac9a0
...@@ -2140,7 +2140,7 @@ static PyObject* ListFields(CMessage* self) { ...@@ -2140,7 +2140,7 @@ static PyObject* ListFields(CMessage* self) {
PyList_SET_ITEM(all_fields.get(), actual_size, t.release()); PyList_SET_ITEM(all_fields.get(), actual_size, t.release());
++actual_size; ++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) < (PyList_SetSlice(all_fields.get(), actual_size, fields.size(), NULL) <
0)) { 0)) {
return NULL; return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment