From 792f536b368067fd27d0eefbe1bf6c91123220f4 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 23 Apr 2012 02:17:57 +0000 Subject: code cleanup: better use of BLI_array_* (grow in larger steps where possible), include BMO_iter_new in for loops. --- source/blender/blenlib/BLI_array.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/blenlib/BLI_array.h') diff --git a/source/blender/blenlib/BLI_array.h b/source/blender/blenlib/BLI_array.h index b5ef7eb853c..d66b8c009d7 100644 --- a/source/blender/blenlib/BLI_array.h +++ b/source/blender/blenlib/BLI_array.h @@ -69,7 +69,7 @@ /* this returns the entire size of the array, including any buffering. */ #define BLI_array_totalsize_dyn(arr) ( \ - ((arr)==NULL) ? \ + ((arr) == NULL) ? \ 0 : \ MEM_allocN_len(arr) / sizeof(*arr) \ ) @@ -151,9 +151,9 @@ } #define BLI_array_pop(arr) ( \ - (arr&&_##arr##_count) ? \ + (arr && _##arr##_count) ? \ arr[--_##arr##_count] : \ - 0 \ + NULL \ ) /* resets the logical size of an array to zero, but doesn't -- cgit v1.2.3