Fix own error in recent heap update

This commit is contained in:
Campbell Barton 2016-07-21 00:33:37 +10:00
parent f0f60d775d
commit 4e5ee5b75e
1 changed files with 1 additions and 2 deletions

View File

@ -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++];
}