diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-22 03:33:50 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-22 03:33:50 +0400 |
commit | ccc1fc1499936aab7a98a1ff6a3df93b62859a41 (patch) | |
tree | 629e8d23d872f8ad9bbcd60bd6fe6c3636aaf2a6 /source/blender/blenlib/BLI_math_geom.h | |
parent | 636b200709c457588b64176e45c9ef5c0ea0a3b2 (diff) |
minor internal change: isect_point_poly_v2 was assigning a value past the array bounds,
not that bad since it wasn't read but this isnt good practice and its simple to avoid.
Diffstat (limited to 'source/blender/blenlib/BLI_math_geom.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_geom.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_math_geom.h b/source/blender/blenlib/BLI_math_geom.h index 6cb7103be9b..4c98c4be897 100644 --- a/source/blender/blenlib/BLI_math_geom.h +++ b/source/blender/blenlib/BLI_math_geom.h @@ -138,8 +138,8 @@ bool isect_ray_tri_epsilon_v3(const float p1[3], const float d[3], const float v0[3], const float v1[3], const float v2[3], float *r_lambda, float r_uv[2], const float epsilon); /* point in polygon */ -bool isect_point_poly_v2(const float pt[2], const float verts[][2], const int nr); -bool isect_point_poly_v2_int(const int pt[2], const int verts[][2], const int nr); +bool isect_point_poly_v2(const float pt[2], const float verts[][2], const unsigned int nr); +bool isect_point_poly_v2_int(const int pt[2], const int verts[][2], const unsigned int nr); int isect_point_quad_v2(const float p[2], const float a[2], const float b[2], const float c[2], const float d[2]); |