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:
Campbell Barton
2022-09-25 17:04:52 +10:00
parent c9e35c2ced
commit 891949cbb4
226 changed files with 1385 additions and 1537 deletions

View File

@@ -64,7 +64,7 @@ static int UnaryFunction0DUnsigned___init__(BPy_UnaryFunction0DUnsigned *self,
if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
return -1;
}
self->uf0D_unsigned = new UnaryFunction0D<unsigned int>();
self->uf0D_unsigned = new UnaryFunction0D<uint>();
self->uf0D_unsigned->py_uf0D = (PyObject *)self;
return 0;
}
@@ -93,7 +93,7 @@ static PyObject *UnaryFunction0DUnsigned___call__(BPy_UnaryFunction0DUnsigned *s
return nullptr;
}
if (typeid(*(self->uf0D_unsigned)) == typeid(UnaryFunction0D<unsigned int>)) {
if (typeid(*(self->uf0D_unsigned)) == typeid(UnaryFunction0D<uint>)) {
PyErr_SetString(PyExc_TypeError, "__call__ method not properly overridden");
return nullptr;
}