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>2012-02-17 04:08:52 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-17 04:08:52 +0400
commitad22305137c20b8429971c53e879bef4c49116d7 (patch)
tree9cbe6e32ffab46641351c9621255f9d831703c72 /source/blender/blenlib
parent020ec22114db1eea35f6d9b34e05d5812e253629 (diff)
fix for error found while looking into #30221
macro needed parentheses.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/BLI_array.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/BLI_array.h b/source/blender/blenlib/BLI_array.h
index a5453f1537b..9fa66e91393 100644
--- a/source/blender/blenlib/BLI_array.h
+++ b/source/blender/blenlib/BLI_array.h
@@ -177,11 +177,11 @@
* same purpose as BLI_array_staticdeclare()
* but use when the max size is known ahead of time */
#define BLI_array_fixedstack_declare(arr, maxstatic, realsize, allocstr) \
- char _##arr##_static[maxstatic*sizeof(*arr)]; \
+ char _##arr##_static[maxstatic*sizeof(*(arr))]; \
const int _##arr##_is_static= ((void *)_##arr##_static) != ( \
- arr= (realsize <= maxstatic) ? \
+ arr= ((realsize) <= maxstatic) ? \
(void *)_##arr##_static : \
- MEM_mallocN(sizeof(*arr)*realsize, allocstr) \
+ MEM_mallocN(sizeof(*(arr)) * (realsize), allocstr) \
) \
#define BLI_array_fixedstack_free(arr) \