diff options
author | Stephen Swaney <sswaney@centurytel.net> | 2004-10-14 23:06:44 +0400 |
---|---|---|
committer | Stephen Swaney <sswaney@centurytel.net> | 2004-10-14 23:06:44 +0400 |
commit | 78a810d9afec61d85ee908de8050fd77c7fe5a8c (patch) | |
tree | c80ab2cce2ba06ef52a2d6389729be65d9a9b30e /source/blender/python/api2_2x/matrix.c | |
parent | 7dda27fcd7266befeb9c8f191726154831438b59 (diff) |
fix bad return types for errors in Matrix_coerce().
EXPP_ReturnPyObjError() should have been EXPP_ReturnIntError().
Diffstat (limited to 'source/blender/python/api2_2x/matrix.c')
-rw-r--r-- | source/blender/python/api2_2x/matrix.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/api2_2x/matrix.c b/source/blender/python/api2_2x/matrix.c index d515e06c672..8f5e2794062 100644 --- a/source/blender/python/api2_2x/matrix.c +++ b/source/blender/python/api2_2x/matrix.c @@ -850,7 +850,7 @@ int Matrix_coerce( PyObject ** m1, PyObject ** m2 ) tempI = PyMem_Malloc( 1 * sizeof( long ) ); if( tempI == NULL ) { - return ( EXPP_ReturnPyObjError + return ( EXPP_ReturnIntError ( PyExc_MemoryError, "problem allocating tempI\n\n" ) ); } @@ -859,7 +859,7 @@ int Matrix_coerce( PyObject ** m1, PyObject ** m2 ) sizeof( float ) ); if( mat == NULL ) { PyMem_Free( tempI ); - return ( EXPP_ReturnPyObjError + return ( EXPP_ReturnIntError ( PyExc_MemoryError, "problem allocating mat\n\n" ) ); } @@ -878,7 +878,7 @@ int Matrix_coerce( PyObject ** m1, PyObject ** m2 ) sizeof ( double ) ); if( tempF == NULL ) { - return ( EXPP_ReturnPyObjError + return ( EXPP_ReturnIntError ( PyExc_MemoryError, "problem allocating tempF\n\n" ) ); } @@ -887,7 +887,7 @@ int Matrix_coerce( PyObject ** m1, PyObject ** m2 ) sizeof( float ) ); if( mat == NULL ) { PyMem_Free( tempF ); - return ( EXPP_ReturnPyObjError + return ( EXPP_ReturnIntError ( PyExc_MemoryError, "problem allocating mat\n\n" ) ); } |