Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-02-05 06:04:26 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-05 06:04:26 +0400
commit4acab3eb33db20eef89d0159199429c690b0f2df (patch)
treee3a8f567c4f065d5a34b486b5e6a9b8c049c4d56 /source/blender/python/generic/py_capi_utils.h
parent5c395b69f55560e20c4c1f3e972b8e0759c647c2 (diff)
Code Cleanup: line length and use Py_ssize_t for PyC_AsArray utility function.
Diffstat (limited to 'source/blender/python/generic/py_capi_utils.h')
-rw-r--r--source/blender/python/generic/py_capi_utils.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/generic/py_capi_utils.h b/source/blender/python/generic/py_capi_utils.h
index 17d83ca6567..2cab464a9d7 100644
--- a/source/blender/python/generic/py_capi_utils.h
+++ b/source/blender/python/generic/py_capi_utils.h
@@ -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 */
-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);