[Bf-blender-cvs] [2b84a7d5b07] functions: fix wrong comparison
Jacques Lucke
noreply at git.blender.org
Sat Dec 14 18:33:45 CET 2019
Commit: 2b84a7d5b07ff7883997f520b16b467da74515c4
Author: Jacques Lucke
Date: Sat Dec 14 18:33:39 2019 +0100
Branches: functions
https://developer.blender.org/rB2b84a7d5b07ff7883997f520b16b467da74515c4
fix wrong comparison
===================================================================
M source/blender/functions/FN_generic_vector_array.h
===================================================================
diff --git a/source/blender/functions/FN_generic_vector_array.h b/source/blender/functions/FN_generic_vector_array.h
index 90daa9511bf..77e12c612de 100644
--- a/source/blender/functions/FN_generic_vector_array.h
+++ b/source/blender/functions/FN_generic_vector_array.h
@@ -97,7 +97,7 @@ class GenericVectorArray : BLI::NonCopyable, BLI::NonMovable {
uint old_length = m_lengths[index];
uint new_length = old_length + extend_length;
- if (new_length >= m_capacities[index]) {
+ if (new_length > m_capacities[index]) {
this->grow_single(index, new_length);
}
More information about the Bf-blender-cvs
mailing list