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:
authorJacques Lucke <jacques@blender.org>2021-03-28 13:32:05 +0300
committerJacques Lucke <jacques@blender.org>2021-03-28 13:50:14 +0300
commit9289c358fbd69f8e31c28f33286df6278a63216d (patch)
tree14a3414005b68ce6c0930360fcbc0c6b000e1edd /source/blender/functions
parentafcfc6eb0842b9208bde3e334e3113a73807f6be (diff)
Cleanup: use parentheses in macro
Diffstat (limited to 'source/blender/functions')
-rw-r--r--source/blender/functions/FN_cpp_type.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/functions/FN_cpp_type.hh b/source/blender/functions/FN_cpp_type.hh
index faf444e91f6..54ea0103fe5 100644
--- a/source/blender/functions/FN_cpp_type.hh
+++ b/source/blender/functions/FN_cpp_type.hh
@@ -674,6 +674,6 @@ class CPPType : NonCopyable, NonMovable {
/* Utility for allocating an uninitialized buffer for a single value of the given #CPPType. */
#define BUFFER_FOR_CPP_TYPE_VALUE(type, variable_name) \
- blender::DynamicStackBuffer<64, 64> stack_buffer_for_##variable_name(type.size(), \
- type.alignment()); \
+ blender::DynamicStackBuffer<64, 64> stack_buffer_for_##variable_name((type).size(), \
+ (type).alignment()); \
void *variable_name = stack_buffer_for_##variable_name.buffer();