Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-06-26 18:20:17 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-06-26 18:20:17 +0400
commit898667b49711a5bf03166810b76fab33ebeecb00 (patch)
treed1e18af842561025d511f9454002cd40fc5152da /source/blender/blenlib/BLI_array.h
parent0ea73023496d6af81b750a95395c3190f1c95039 (diff)
Fix BLI_array_staticdeclare size
Diffstat (limited to 'source/blender/blenlib/BLI_array.h')
-rw-r--r--source/blender/blenlib/BLI_array.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_array.h b/source/blender/blenlib/BLI_array.h
index 4110c85c2a5..4e2cfe09219 100644
--- a/source/blender/blenlib/BLI_array.h
+++ b/source/blender/blenlib/BLI_array.h
@@ -75,7 +75,7 @@ void _bli_array_grow_func(void **arr_p, const void *arr_static,
* switching to dynamic heap allocation */
#define BLI_array_staticdeclare(arr, maxstatic) \
int _##arr##_count = 0; \
- char _##arr##_static[maxstatic * sizeof(arr)]
+ char _##arr##_static[maxstatic * sizeof(*(arr))]
/* this returns the logical size of the array, not including buffering. */
#define BLI_array_count(arr) _##arr##_count