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>2016-07-20 17:33:37 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-07-20 17:35:42 +0300
commit4e5ee5b75e19b24eeceee489f2958e9000d0f2fb (patch)
treea05fb8e7a35f4b82e2a8cac8b4067411237b356b /source/blender/blenlib/intern/BLI_heap.c
parentf0f60d775def20ff3a3699704b33c66712d50c6a (diff)
Fix own error in recent heap update
Diffstat (limited to 'source/blender/blenlib/intern/BLI_heap.c')
-rw-r--r--source/blender/blenlib/intern/BLI_heap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/BLI_heap.c b/source/blender/blenlib/intern/BLI_heap.c
index d48e9fbddde..0a8dafc2dc1 100644
--- a/source/blender/blenlib/intern/BLI_heap.c
+++ b/source/blender/blenlib/intern/BLI_heap.c
@@ -167,8 +167,7 @@ static struct HeapNode *heap_node_alloc(Heap *heap)
else {
struct HeapNode_Chunk *chunk = heap->nodes.chunk;
if (UNLIKELY(chunk->size == chunk->bufsize)) {
- struct HeapNode_Chunk *chunk_next = heap_node_alloc_chunk(HEAP_CHUNK_DEFAULT_NUM, chunk);
- chunk = chunk_next;
+ chunk = heap->nodes.chunk = heap_node_alloc_chunk(HEAP_CHUNK_DEFAULT_NUM, chunk);
}
node = &chunk->buf[chunk->size++];
}