Cleanup: use 'u' prefixed integer types for brevity & cast style
To use function style cast '(unsigned char)x' can't be replaced by 'unsigned char(x)'.
This commit is contained in:
@@ -106,9 +106,9 @@ static PyObject *UnaryFunction0DVectorViewShape___call__(BPy_UnaryFunction0DVect
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
const unsigned int list_len = self->uf0D_vectorviewshape->result.size();
|
||||
const uint list_len = self->uf0D_vectorviewshape->result.size();
|
||||
PyObject *list = PyList_New(list_len);
|
||||
for (unsigned int i = 0; i < list_len; i++) {
|
||||
for (uint i = 0; i < list_len; i++) {
|
||||
ViewShape *v = self->uf0D_vectorviewshape->result[i];
|
||||
PyList_SET_ITEM(list, i, v ? BPy_ViewShape_from_ViewShape(*v) : (Py_INCREF(Py_None), Py_None));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user