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/Lamp.c | |
parent | 577456f86af8fc3390a274da7e28281fff0fe43f (diff) |
Project file update for elbeem
Warning clean up of python project
Diffstat (limited to 'source/blender/python/api2_2x/Lamp.c')
-rw-r--r-- | source/blender/python/api2_2x/Lamp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/Lamp.c b/source/blender/python/api2_2x/Lamp.c index 3a1e4a815e5..9f684e914ed 100644 --- a/source/blender/python/api2_2x/Lamp.c +++ b/source/blender/python/api2_2x/Lamp.c @@ -1079,7 +1079,7 @@ static int Lamp_setMode( BPy_Lamp * self, PyObject * value ) sprintf ( errstr , "expected int bitmask of 0x%04x", bitmask ); return EXPP_ReturnIntError( PyExc_TypeError, errstr ); } - param = PyInt_AS_LONG ( value ); + param = (short)PyInt_AS_LONG ( value ); if ( ( param & bitmask ) != param ) return EXPP_ReturnIntError( PyExc_ValueError, @@ -1222,7 +1222,7 @@ static int Lamp_setComponent( BPy_Lamp * self, PyObject * value, return EXPP_ReturnIntError( PyExc_TypeError, "expected float argument in [0.0,1.0]" ); - color = PyFloat_AsDouble( value ); + color = (float)PyFloat_AsDouble( value ); color = EXPP_ClampFloat( color, EXPP_LAMP_COL_MIN, EXPP_LAMP_COL_MAX ); switch ( (int)closure ) { @@ -1636,7 +1636,7 @@ static PyObject *Lamp_oldsetMode( BPy_Lamp * self, PyObject * args ) /* check each argument for type, find its value */ - for ( i = PyTuple_Size( args ); i-- ; ) { + for ( i = (short)PyTuple_Size( args ); i-- ; ) { name = PyString_AsString ( PySequence_Fast_GET_ITEM( args, i ) ); if( !name ) return EXPP_ReturnPyObjError ( PyExc_AttributeError, |