diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-06-16 20:47:57 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-06-16 20:47:57 +0400 |
commit | f2a0062042edfafab2c0d9472f2669521ff70930 (patch) | |
tree | 661259338dadb701f6567d627061e81be41b35e5 /source/blender/bmesh/operators/bmo_subdivide.c | |
parent | a6e290166b7565d5e70309d8e41fbc267321b551 (diff) |
Use ARRAY_SIZE to replace (sizeof(a) / sizeof(*a))
Diffstat (limited to 'source/blender/bmesh/operators/bmo_subdivide.c')
-rw-r--r-- | source/blender/bmesh/operators/bmo_subdivide.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/bmesh/operators/bmo_subdivide.c b/source/blender/bmesh/operators/bmo_subdivide.c index 4bc07c82c5c..fc507cdbd21 100644 --- a/source/blender/bmesh/operators/bmo_subdivide.c +++ b/source/blender/bmesh/operators/bmo_subdivide.c @@ -752,7 +752,7 @@ static const SubDPattern *patterns[] = { NULL, }; -#define PATTERNS_TOT (sizeof(patterns) / sizeof(void *)) +#define PATTERNS_TOT ARRAY_SIZE(patterns) typedef struct SubDFaceData { BMVert *start; |