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:
authorCampbell Barton <ideasman42@gmail.com>2013-06-19 23:59:49 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-06-19 23:59:49 +0400
commit998101763aae5b0d25f6fa0f1a3227e45bb03b1e (patch)
tree95b479a8355329004e2dacc244415b5783d71154 /source/blender/blenlib/intern/BLI_heap.c
parent881dbac5d93cffd2f6a9f5c3896d1c84ebfd0ce5 (diff)
correct for own regressions when refactoring select-path, was using heap popmin incorrectly.
Diffstat (limited to 'source/blender/blenlib/intern/BLI_heap.c')
-rw-r--r--source/blender/blenlib/intern/BLI_heap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/BLI_heap.c b/source/blender/blenlib/intern/BLI_heap.c
index a8fdcd56abb..2da36377e55 100644
--- a/source/blender/blenlib/intern/BLI_heap.c
+++ b/source/blender/blenlib/intern/BLI_heap.c
@@ -30,6 +30,7 @@
* \ingroup bli
*/
+#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
@@ -207,6 +208,8 @@ void *BLI_heap_popmin(Heap *heap)
{
void *ptr = heap->tree[0]->ptr;
+ BLI_assert(heap->size == 0);
+
heap->tree[0]->ptr = heap->freenodes;
heap->freenodes = heap->tree[0];