diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-18 02:31:57 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-18 02:31:57 +0400 |
commit | 05612c041964dd2950136af5486db9369969e2ae (patch) | |
tree | 62e1864cb80c81fa7b0337784ee053f3e834d123 /source/blender/python/mathutils/mathutils_Color.c | |
parent | 6075a24fc4c24dd69a49db68fc76039e86199a15 (diff) |
code cleanup: not all mathutils callback creation functions tool unsigned char for type & subtype args.
Diffstat (limited to 'source/blender/python/mathutils/mathutils_Color.c')
-rw-r--r-- | source/blender/python/mathutils/mathutils_Color.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/python/mathutils/mathutils_Color.c b/source/blender/python/mathutils/mathutils_Color.c index 8cba75abd2f..99ac53fafcf 100644 --- a/source/blender/python/mathutils/mathutils_Color.c +++ b/source/blender/python/mathutils/mathutils_Color.c @@ -885,14 +885,15 @@ PyObject *Color_CreatePyObject(float *col, int type, PyTypeObject *base_type) return (PyObject *)self; } -PyObject *Color_CreatePyObject_cb(PyObject *cb_user, int cb_type, int cb_subtype) +PyObject *Color_CreatePyObject_cb(PyObject *cb_user, + unsigned char cb_type, unsigned char cb_subtype) { ColorObject *self = (ColorObject *)Color_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); } |