BLI_array: avoid mixing terms count/length

This commit is contained in:
Campbell Barton 2014-07-11 15:30:42 +10:00
parent 315609ec0c
commit 78d38a9033
2 changed files with 3 additions and 3 deletions

@ -144,7 +144,7 @@ void _bli_array_grow_func(void **arr_p, const void *arr_static,
/* set the count of the array, doesn't actually increase the allocated array
* size. don't use this unless you know what you're doing. */
#define BLI_array_length_set(arr, count) \
#define BLI_array_count_set(arr, count) \
{ _##arr##_count = (count); }(void)0
/* only to prevent unused warnings */

@ -179,11 +179,11 @@ void bmo_edgenet_prepare_exec(BMesh *bm, BMOperator *op)
if (!count) {
edges1 = edges;
BLI_array_length_set(edges1, BLI_array_count(edges));
BLI_array_count_set(edges1, BLI_array_count(edges));
}
else {
edges2 = edges;
BLI_array_length_set(edges2, BLI_array_count(edges));
BLI_array_count_set(edges2, BLI_array_count(edges));
}
BLI_array_empty(edges);