Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Gilbert <ascotan@gmail.com>2007-03-02 00:30:48 +0300
committerJoseph Gilbert <ascotan@gmail.com>2007-03-02 00:30:48 +0300
commit585edac6d2ef35f9199940e9d45aaef412860e45 (patch)
tree7dffb1a303879a5d523d4ba592d310941379780b /source/blender/python/api2_2x/Object.c
parentccefcc8a79c1f200feecef6e11ba516953b7b5e2 (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.c6
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 )