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_Euler.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_Euler.c')
-rw-r--r-- | source/blender/python/mathutils/mathutils_Euler.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/python/mathutils/mathutils_Euler.c b/source/blender/python/mathutils/mathutils_Euler.c index 4a8b97e1d2e..957649e6365 100644 --- a/source/blender/python/mathutils/mathutils_Euler.c +++ b/source/blender/python/mathutils/mathutils_Euler.c @@ -732,14 +732,15 @@ PyObject *Euler_CreatePyObject(float *eul, short order, int type, PyTypeObject * return (PyObject *)self; } -PyObject *Euler_CreatePyObject_cb(PyObject *cb_user, short order, int cb_type, int cb_subtype) +PyObject *Euler_CreatePyObject_cb(PyObject *cb_user, short order, + unsigned char cb_type, unsigned char cb_subtype) { EulerObject *self = (EulerObject *)Euler_CreatePyObject(NULL, order, 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); } |