[Bf-blender-cvs] [470a2ce330a] functions-experimental-refactor: fix compile error
Jacques Lucke
noreply at git.blender.org
Thu Nov 7 15:17:49 CET 2019
Commit: 470a2ce330a7dc217848b69a84fafb90eb417eeb
Author: Jacques Lucke
Date: Thu Nov 7 15:17:44 2019 +0100
Branches: functions-experimental-refactor
https://developer.blender.org/rB470a2ce330a7dc217848b69a84fafb90eb417eeb
fix compile error
===================================================================
M source/blender/blenlib/BLI_memory_utils_cxx.h
===================================================================
diff --git a/source/blender/blenlib/BLI_memory_utils_cxx.h b/source/blender/blenlib/BLI_memory_utils_cxx.h
index 082ce7abc59..f15621b4e41 100644
--- a/source/blender/blenlib/BLI_memory_utils_cxx.h
+++ b/source/blender/blenlib/BLI_memory_utils_cxx.h
@@ -102,7 +102,7 @@ template<uint Size, uint Alignment> class alignas(Alignment) AlignedBuffer {
private:
/* Don't create an empty array. This causes problems with some compilers. */
static constexpr uint ActualSize = (Size > 0) ? Size : 1;
- char m_buffer[Size];
+ char m_buffer[ActualSize];
public:
void *ptr()
More information about the Bf-blender-cvs
mailing list