fix for error in BLI_buffer_declare_static(), the stack variable wasn't the right...
authorCampbell Barton <ideasman42@gmail.com>
Fri, 26 Jul 2013 15:26:51 +0000 (15:26 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 26 Jul 2013 15:26:51 +0000 (15:26 +0000)
Caused UV stretch display to fail.

source/blender/blenlib/BLI_buffer.h

index fe835e7cadc85c602a2312f92397d0b0f8e72b38..879ef8696530522b132b42c5801fd7b3b41e0c40 100644 (file)
@@ -53,7 +53,7 @@ enum {
 
 #define BLI_buffer_declare_static(type_, name_, flag_, static_count_) \
        char name_ ## user;  /* warn for free only */ \
-       type_ *name_ ## _static_[static_count_]; \
+       type_ name_ ## _static_[static_count_]; \
        BLI_Buffer name_ = { \
        /* clear the static memory if this is a calloc'd array */ \
        ((void)((flag_ & BLI_BUFFER_USE_CALLOC) ? \