Code Cleanup: line length and use Py_ssize_t for PyC_AsArray utility function.
[blender-staging.git] / source / blender / python / generic / py_capi_utils.h
index 17d83ca6567bf7ac7abbd39114ac3afef861f054..2cab464a9d76773299839447b60cb35e2d1943aa 100644 (file)
@@ -35,7 +35,8 @@ PyObject *            PyC_Object_GetAttrStringArgs(PyObject *o, Py_ssize_t n, ...);
 PyObject *             PyC_Err_Format_Prefix(PyObject *exception_type_prefix, const char *format, ...);
 void                   PyC_FileAndNum(const char **filename, int *lineno);
 void                   PyC_FileAndNum_Safe(const char **filename, int *lineno); /* checks python is running */
 PyObject *             PyC_Err_Format_Prefix(PyObject *exception_type_prefix, const char *format, ...);
 void                   PyC_FileAndNum(const char **filename, int *lineno);
 void                   PyC_FileAndNum_Safe(const char **filename, int *lineno); /* checks python is running */
-int                            PyC_AsArray(void *array, PyObject *value, const int length, const PyTypeObject *type, const short is_double, const char *error_prefix);
+int                            PyC_AsArray(void *array, PyObject *value, const Py_ssize_t length,
+                            const PyTypeObject *type, const short is_double, const char *error_prefix);
 
 /* follow http://www.python.org/dev/peps/pep-0383/ */
 PyObject *      PyC_UnicodeFromByte(const char *str);
 
 /* follow http://www.python.org/dev/peps/pep-0383/ */
 PyObject *      PyC_UnicodeFromByte(const char *str);