diff options
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenlib/BLI_linklist_stack.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/BLI_linklist_stack.h b/source/blender/blenlib/BLI_linklist_stack.h index 4562ce2487e..ca050883018 100644 --- a/source/blender/blenlib/BLI_linklist_stack.h +++ b/source/blender/blenlib/BLI_linklist_stack.h @@ -111,7 +111,7 @@ * \{ */ #ifdef __GNUC__ -# define _BLI_SMALLSTACK_CAST(var) typeof(_##var##_type) +# define _BLI_SMALLSTACK_CAST(var) (typeof(_##var##_type)) #else # define _BLI_SMALLSTACK_CAST(var) #endif @@ -144,8 +144,8 @@ /* check for typeof() */ #define BLI_SMALLSTACK_POP(var) \ - (_BLI_SMALLSTACK_CAST(var)) ((_##var##_stack) ? \ - (_BLI_SMALLSTACK_DEL(var), (_##var##_free->link)) : NULL) + (_BLI_SMALLSTACK_CAST(var) ((_##var##_stack) ? \ + (_BLI_SMALLSTACK_DEL(var), (_##var##_free->link)) : NULL)) #define BLI_SMALLSTACK_FREE(var) { \ (void)&(_##var##_type); \ |