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) {
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;
......
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