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>2017-10-20 06:03:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-10-20 06:03:22 +0300
commit959a58da9e4d23be2738b6979ec208f05468f50c (patch)
treeafebcc5b122e04adf8ee0ba1d5e84fadfa1ef665 /source/blender/blenlib
parentcb957fd8e0e2e0d0dbbebc3e7e3fcc5bfa8b51a8 (diff)
Cleanup: redundant casts
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/convexhull2d.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/convexhull2d.c b/source/blender/blenlib/intern/convexhull2d.c
index 740f3cce4a4..1f1f214ce32 100644
--- a/source/blender/blenlib/intern/convexhull2d.c
+++ b/source/blender/blenlib/intern/convexhull2d.c
@@ -209,7 +209,7 @@ int BLI_convexhull_2d(const float (*points)[2], const int n, int r_points[])
memcpy(points_sort[i], points_ref[i].pt, sizeof(float[2]));
}
- tot = BLI_convexhull_2d_sorted((const float (*)[2])points_sort, n, r_points);
+ tot = BLI_convexhull_2d_sorted(points_sort, n, r_points);
/* map back to the original index values */
points_map = (int *)points_sort; /* abuse float array for temp storage */
@@ -305,7 +305,7 @@ float BLI_convexhull_aabb_fit_points_2d(const float (*points)[2], unsigned int n
index_map = MEM_mallocN(sizeof(*index_map) * n * 2, __func__);
- tot = BLI_convexhull_2d((const float (*)[2])points, (int)n, index_map);
+ tot = BLI_convexhull_2d(points, (int)n, index_map);
if (tot) {
float (*points_hull)[2];
@@ -316,7 +316,7 @@ float BLI_convexhull_aabb_fit_points_2d(const float (*points)[2], unsigned int n
copy_v2_v2(points_hull[j], points[index_map[j]]);
}
- angle = BLI_convexhull_aabb_fit_hull_2d((const float (*)[2])points_hull, (unsigned int)tot);
+ angle = BLI_convexhull_aabb_fit_hull_2d(points_hull, (unsigned int)tot);
MEM_freeN(points_hull);
}
else {