* 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:
@@ -166,7 +166,7 @@ PyObject * UnaryFunction1DVectorViewShape___call__( BPy_UnaryFunction1DVectorVie
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
PyObject *list = PyList_New(NULL);
|
||||
PyObject *list = PyList_New(0);
|
||||
|
||||
for( unsigned int i = 0; i < self->uf1D_vectorviewshape->result.size(); i++)
|
||||
PyList_Append(list, BPy_ViewShape_from_ViewShape(*( self->uf1D_vectorviewshape->result[i] )) );
|
||||
|
||||
Reference in New Issue
Block a user