[Bf-blender-cvs] [3062f341b3d] master: BLI: fix illegal zero sized array
Jacques Lucke
noreply at git.blender.org
Thu Sep 12 18:47:34 CEST 2019
Commit: 3062f341b3d8ff82f0f0f5928818b74bfd8cf1e5
Author: Jacques Lucke
Date: Thu Sep 12 18:46:15 2019 +0200
Branches: master
https://developer.blender.org/rB3062f341b3d8ff82f0f0f5928818b74bfd8cf1e5
BLI: fix illegal zero sized array
===================================================================
M source/blender/blenlib/intern/BLI_index_range.cc
===================================================================
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;
More information about the Bf-blender-cvs
mailing list