diff options
author | Joseph Gilbert <ascotan@gmail.com> | 2005-09-26 18:46:14 +0400 |
---|---|---|
committer | Joseph Gilbert <ascotan@gmail.com> | 2005-09-26 18:46:14 +0400 |
commit | b6ecdb8c354233c33dcd1282ddf8bc7e68120c37 (patch) | |
tree | 77db145a7d4c931584012ba23832960bb194ca47 /source/blender/python/api2_2x/rgbTuple.c | |
parent | 577456f86af8fc3390a274da7e28281fff0fe43f (diff) |
Project file update for elbeem
Warning clean up of python project
Diffstat (limited to 'source/blender/python/api2_2x/rgbTuple.c')
-rw-r--r-- | source/blender/python/api2_2x/rgbTuple.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/rgbTuple.c b/source/blender/python/api2_2x/rgbTuple.c index f7ad9dc10af..2e228e70661 100644 --- a/source/blender/python/api2_2x/rgbTuple.c +++ b/source/blender/python/api2_2x/rgbTuple.c @@ -161,9 +161,9 @@ int rgbTuple_setCol( BPy_rgbTuple * self, PyObject * args ) PyNumber_Check( PySequence_Fast_GET_ITEM( args, 0 ) ) && PyNumber_Check( PySequence_Fast_GET_ITEM( args, 1 ) ) && PyNumber_Check( PySequence_Fast_GET_ITEM( args, 2 ) ) ) { - r = PyFloat_AsDouble( PySequence_Fast_GET_ITEM( args, 0 ) ); - g = PyFloat_AsDouble( PySequence_Fast_GET_ITEM( args, 1 ) ); - b = PyFloat_AsDouble( PySequence_Fast_GET_ITEM( args, 2 ) ); + r = (float)PyFloat_AsDouble( PySequence_Fast_GET_ITEM( args, 0 ) ); + g = (float)PyFloat_AsDouble( PySequence_Fast_GET_ITEM( args, 1 ) ); + b = (float)PyFloat_AsDouble( PySequence_Fast_GET_ITEM( args, 2 ) ); ok = 1; } else ok = PyArg_ParseTuple( args, "fff", &r, &g, &b ); |