Cleanup: redundant casts

This commit is contained in:
2017-10-20 14:03:22 +11:00
parent cb957fd8e0
commit 959a58da9e
12 changed files with 25 additions and 25 deletions

View File

@@ -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++) {