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 <mail@jlucke.com>2019-09-12 19:46:15 +0300
committerJacques Lucke <mail@jlucke.com>2019-09-12 19:46:31 +0300
commit3062f341b3d8ff82f0f0f5928818b74bfd8cf1e5 (patch)
tree740a971f53e4d6da75b2d877b0862faba3a76313
parent852c727073860173bc4de01ec08a4890e1d55bcc (diff)
BLI: fix illegal zero sized array
-rw-r--r--source/blender/blenlib/intern/BLI_index_range.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/BLI_index_range.cc b/source/blender/blenlib/intern/BLI_index_range.cc
index 3dade791b71..fde4dcf6d41 100644
--- a/source/blender/blenlib/intern/BLI_index_range.cc
+++ b/source/blender/blenlib/intern/BLI_index_range.cc
@@ -24,7 +24,7 @@
namespace BLI {
-static Vector<Array<uint, RawAllocator>, 0, RawAllocator> arrays;
+static Vector<Array<uint, RawAllocator>, 1, RawAllocator> arrays;
static uint current_array_size = 0;
static uint *current_array = nullptr;
static std::mutex current_array_mutex;