diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-02-20 07:38:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-02-20 07:40:05 +0300 |
commit | 2a6df7dfe5ae9c25780166771c56ff921cc90f63 (patch) | |
tree | ad638ee71b52f5915b937bf538051f49b0ac120b /source/blender/python/mathutils/mathutils_kdtree.c | |
parent | 1e3ffd1f872b1a52a5c392b135c29ae71744137d (diff) |
Cleanup: use named unsigned types in the Python API
Diffstat (limited to 'source/blender/python/mathutils/mathutils_kdtree.c')
-rw-r--r-- | source/blender/python/mathutils/mathutils_kdtree.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/python/mathutils/mathutils_kdtree.c b/source/blender/python/mathutils/mathutils_kdtree.c index c6383f23d60..ec35d25bdd5 100644 --- a/source/blender/python/mathutils/mathutils_kdtree.c +++ b/source/blender/python/mathutils/mathutils_kdtree.c @@ -38,9 +38,9 @@ typedef struct { PyObject_HEAD KDTree_3d *obj; - unsigned int maxsize; - unsigned int count; - unsigned int count_balance; /* size when we last balanced */ + uint maxsize; + uint count; + uint count_balance; /* size when we last balanced */ } PyKDTree; /* -------------------------------------------------------------------- */ @@ -92,7 +92,7 @@ static PyObject *kdtree_nearest_to_py_and_check(const KDTreeNearest_3d *nearest) static int PyKDTree__tp_init(PyKDTree *self, PyObject *args, PyObject *kwargs) { - unsigned int maxsize; + uint maxsize; const char *keywords[] = {"size", NULL}; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "I:KDTree", (char **)keywords, &maxsize)) { @@ -273,7 +273,7 @@ static PyObject *py_kdtree_find_n(PyKDTree *self, PyObject *args, PyObject *kwar PyObject *py_co; float co[3]; KDTreeNearest_3d *nearest; - unsigned int n; + uint n; int i, found; const char *keywords[] = {"co", "n", NULL}; |