From 432d274990d46f54d2d27cb0a8a351ecd2de4491 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 14 Sep 2014 17:26:45 +1000 Subject: Cleanup & typo in assignment --- source/blender/blenlib/intern/convexhull2d.c | 2 +- source/blender/blenlib/intern/polyfill2d.c | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'source/blender/blenlib/intern') diff --git a/source/blender/blenlib/intern/convexhull2d.c b/source/blender/blenlib/intern/convexhull2d.c index 34ee39d8a9b..361e4b4eadb 100644 --- a/source/blender/blenlib/intern/convexhull2d.c +++ b/source/blender/blenlib/intern/convexhull2d.c @@ -187,7 +187,7 @@ static int pointref_cmp_yx(const void *a_, const void *b_) * \param points An array of 2D points. * \param n The number of points in points. * \param r_points An array of the convex hull vertex indices (max is n). - * _must_ be allocated as ``n * 2`` becauise of how its used internally, + * _must_ be allocated as ``n * 2`` because of how its used internally, * even though the final result will be no more then \a n in size. * \returns the number of points in r_points. */ diff --git a/source/blender/blenlib/intern/polyfill2d.c b/source/blender/blenlib/intern/polyfill2d.c index dd829e5d80a..40390b0e173 100644 --- a/source/blender/blenlib/intern/polyfill2d.c +++ b/source/blender/blenlib/intern/polyfill2d.c @@ -661,12 +661,12 @@ static PolyIndex *pf_ear_tip_find( static bool pf_ear_tip_check(PolyFill *pf, PolyIndex *pi_ear_tip) { - /* localize */ - PolyIndex *pi_curr; - const float (*coords)[2] = pf->coords; - #ifndef USE_KDTREE const float *v1, *v2, *v3; +#else + /* localize */ + const float (*coords)[2] = pf->coords; + PolyIndex *pi_curr; #endif #if defined(USE_CONVEX_SKIP) && !defined(USE_KDTREE) @@ -711,8 +711,6 @@ static bool pf_ear_tip_check(PolyFill *pf, PolyIndex *pi_ear_tip) return false; } } - (void)pi_curr; - (void)coords; #else v1 = coords[pi_ear_tip->prev->index]; -- cgit v1.2.3