* 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:
2009-10-15 19:38:45 +00:00
parent 3c7d54b38a
commit 94711098e4
21 changed files with 24 additions and 25 deletions

View File

@@ -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] )) );