diff options
author | Joseph Gilbert <ascotan@gmail.com> | 2007-03-02 00:30:48 +0300 |
---|---|---|
committer | Joseph Gilbert <ascotan@gmail.com> | 2007-03-02 00:30:48 +0300 |
commit | 585edac6d2ef35f9199940e9d45aaef412860e45 (patch) | |
tree | 7dffb1a303879a5d523d4ba592d310941379780b /source/blender/python/api2_2x/Object.c | |
parent | ccefcc8a79c1f200feecef6e11ba516953b7b5e2 (diff) |
various warnings fixes - mostly casting and initialization issues
Diffstat (limited to 'source/blender/python/api2_2x/Object.c')
-rw-r--r-- | source/blender/python/api2_2x/Object.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/Object.c b/source/blender/python/api2_2x/Object.c index d413b90fcc6..68079e3e4f4 100644 --- a/source/blender/python/api2_2x/Object.c +++ b/source/blender/python/api2_2x/Object.c @@ -3283,7 +3283,7 @@ static int Object_setRBMass( BPy_Object * self, PyObject * args ) if( !flt ) return EXPP_ReturnIntError( PyExc_TypeError, "expected float argument" ); - value = PyFloat_AS_DOUBLE( flt ); + value = (float)PyFloat_AS_DOUBLE( flt ); Py_DECREF( flt ); if( value < 0.0f ) @@ -3983,7 +3983,7 @@ static int setFloatAttr( BPy_Object *self, PyObject *value, void *type ) return EXPP_ReturnIntError( PyExc_TypeError, "expected float argument" ); - param = PyFloat_AsDouble( value ); + param = (float)PyFloat_AsDouble( value ); switch( (int)type ) { case EXPP_OBJ_ATTR_LOC_X: @@ -4654,7 +4654,7 @@ static int Object_setRBRadius( BPy_Object * self, PyObject * args ) if( !flt ) return EXPP_ReturnIntError( PyExc_TypeError, "expected float argument" ); - value = PyFloat_AS_DOUBLE( flt ); + value = (float)PyFloat_AS_DOUBLE( flt ); Py_DECREF( flt ); if( value < 0.0f ) |