diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-10-20 06:03:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-10-20 06:03:22 +0300 |
commit | 959a58da9e4d23be2738b6979ec208f05468f50c (patch) | |
tree | afebcc5b122e04adf8ee0ba1d5e84fadfa1ef665 /source/blender/python/mathutils/mathutils_geometry.c | |
parent | cb957fd8e0e2e0d0dbbebc3e7e3fcc5bfa8b51a8 (diff) |
Cleanup: redundant casts
Diffstat (limited to 'source/blender/python/mathutils/mathutils_geometry.c')
-rw-r--r-- | source/blender/python/mathutils/mathutils_geometry.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/mathutils/mathutils_geometry.c b/source/blender/python/mathutils/mathutils_geometry.c index 1dc18dbe509..72f92d210d7 100644 --- a/source/blender/python/mathutils/mathutils_geometry.c +++ b/source/blender/python/mathutils/mathutils_geometry.c @@ -1430,7 +1430,7 @@ static PyObject *M_Geometry_box_fit_2d(PyObject *UNUSED(self), PyObject *pointli if (len) { /* Non Python function */ - angle = BLI_convexhull_aabb_fit_points_2d((const float (*)[2])points, len); + angle = BLI_convexhull_aabb_fit_points_2d(points, len); PyMem_Free(points); } @@ -1468,7 +1468,7 @@ static PyObject *M_Geometry_convex_hull_2d(PyObject *UNUSED(self), PyObject *poi index_map = MEM_mallocN(sizeof(*index_map) * len * 2, __func__); /* Non Python function */ - len_ret = BLI_convexhull_2d((const float (*)[2])points, len, index_map); + len_ret = BLI_convexhull_2d(points, len, index_map); ret = PyList_New(len_ret); for (i = 0; i < len_ret; i++) { |