* Fixed compiler warnings concerning the lack of a newline at the
end of a file. * Fixed compiler warnings due to an invalid argument to PyList_New(). NULL was used instead of 0 to create an empty list.
This commit is contained in:
@@ -139,7 +139,7 @@ PyObject * UnaryFunction0DVectorViewShape___call__( BPy_UnaryFunction0DVectorVie
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
PyObject *list = PyList_New(NULL);
|
||||
PyObject *list = PyList_New(0);
|
||||
|
||||
for( unsigned int i = 0; i < self->uf0D_vectorviewshape->result.size(); i++)
|
||||
PyList_Append(list, BPy_ViewShape_from_ViewShape(*( self->uf0D_vectorviewshape->result[i] )) );
|
||||
|
||||
Reference in New Issue
Block a user