[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [58625] trunk/blender/source/blender/ blenlib/BLI_buffer.h: fix for error in BLI_buffer_declare_static(), the stack variable wasn't the right size, from original commit 53440.

Campbell Barton ideasman42 at gmail.com
Fri Jul 26 17:26:51 CEST 2013


Revision: 58625
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=58625
Author:   campbellbarton
Date:     2013-07-26 15:26:51 +0000 (Fri, 26 Jul 2013)
Log Message:
-----------
fix for error in BLI_buffer_declare_static(), the stack variable wasn't the right size, from original commit 53440.
Caused UV stretch display to fail.

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/BLI_buffer.h

Modified: trunk/blender/source/blender/blenlib/BLI_buffer.h
===================================================================
--- trunk/blender/source/blender/blenlib/BLI_buffer.h	2013-07-26 15:15:58 UTC (rev 58624)
+++ trunk/blender/source/blender/blenlib/BLI_buffer.h	2013-07-26 15:26:51 UTC (rev 58625)
@@ -53,7 +53,7 @@
 
 #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) ? \




More information about the Bf-blender-cvs mailing list