code cleanup: not all mathutils callback creation functions tool unsigned char for type & subtype args.
This commit is contained in:
@@ -1268,14 +1268,15 @@ PyObject *Quaternion_CreatePyObject(float *quat, int type, PyTypeObject *base_ty
|
||||
return (PyObject *) self;
|
||||
}
|
||||
|
||||
PyObject *Quaternion_CreatePyObject_cb(PyObject *cb_user, int cb_type, int cb_subtype)
|
||||
PyObject *Quaternion_CreatePyObject_cb(PyObject *cb_user,
|
||||
unsigned char cb_type, unsigned char cb_subtype)
|
||||
{
|
||||
QuaternionObject *self = (QuaternionObject *)Quaternion_CreatePyObject(NULL, Py_NEW, NULL);
|
||||
if (self) {
|
||||
Py_INCREF(cb_user);
|
||||
self->cb_user = cb_user;
|
||||
self->cb_type = (unsigned char)cb_type;
|
||||
self->cb_subtype = (unsigned char)cb_subtype;
|
||||
self->cb_user = cb_user;
|
||||
self->cb_type = cb_type;
|
||||
self->cb_subtype = cb_subtype;
|
||||
PyObject_GC_Track(self);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user