diff options
author | Joseph Gilbert <ascotan@gmail.com> | 2005-11-07 22:34:44 +0300 |
---|---|---|
committer | Joseph Gilbert <ascotan@gmail.com> | 2005-11-07 22:34:44 +0300 |
commit | cce655b5e7178a86391aff03d15dca0d328b75de (patch) | |
tree | f58602c8591930af8b989ad2862f38102b7d54d0 /source/blender/python/api2_2x/Effect.c | |
parent | f7c955b18e0078d2357978ba45930ec400564f19 (diff) |
- warning fixes
* various warnings the python api is putting out
Diffstat (limited to 'source/blender/python/api2_2x/Effect.c')
-rw-r--r-- | source/blender/python/api2_2x/Effect.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/api2_2x/Effect.c b/source/blender/python/api2_2x/Effect.c index f161cfc86fb..288039c5348 100644 --- a/source/blender/python/api2_2x/Effect.c +++ b/source/blender/python/api2_2x/Effect.c @@ -983,7 +983,7 @@ static PyObject *Effect_getTotpart( BPy_Effect * self ) static int Effect_setTotpart( BPy_Effect * self, PyObject * args ) { return EXPP_setIValueClamped( args, &self->effect->totpart, - EXPP_EFFECT_TOTPART_MIN, EXPP_EFFECT_TOTPART_MAX, 'i' ); + (int)EXPP_EFFECT_TOTPART_MIN, (int)EXPP_EFFECT_TOTPART_MAX, 'i' ); } static PyObject *Effect_getTotkey( BPy_Effect * self ) @@ -1074,7 +1074,7 @@ static int Effect_setMult( BPy_Effect * self, PyObject * args ) return EXPP_ReturnIntError( PyExc_AttributeError, "expected a tuple of four float arguments" ); for( i = 0; i < 4; ++i ) - self->effect->mult[i] = EXPP_ClampInt( val[i], + self->effect->mult[i] = EXPP_ClampFloat( val[i], EXPP_EFFECT_MULT_MIN, EXPP_EFFECT_MULT_MAX ); return 0; } @@ -1135,7 +1135,7 @@ static int Effect_setChild( BPy_Effect * self, PyObject * args ) return EXPP_ReturnIntError( PyExc_AttributeError, "expected a tuple of four int argument" ); for( i = 0; i < 4; ++i ) - self->effect->child[i] = EXPP_ClampInt( val[i], + self->effect->child[i] = (short)EXPP_ClampInt( val[i], EXPP_EFFECT_CHILD_MIN, EXPP_EFFECT_CHILD_MAX ); return 0; } @@ -1165,7 +1165,7 @@ static int Effect_setMat( BPy_Effect * self, PyObject * args ) return EXPP_ReturnIntError( PyExc_AttributeError, "expected a tuple of four int argument" ); for( i = 0; i < 4; ++i ) - self->effect->mat[i] = EXPP_ClampInt( val[i], + self->effect->mat[i] = (short)EXPP_ClampInt( val[i], EXPP_EFFECT_MAT_MIN, EXPP_EFFECT_MAT_MAX ); return 0; } |