BLI: fix mistake in move constructor of Stack

This commit is contained in:
2020-07-04 17:28:05 +02:00
parent 8e97694c8a
commit 169bb4b9ce

View File

@@ -174,6 +174,10 @@ class Stack {
inline_chunk_.above = other.inline_chunk_.above;
size_ = other.size_;
if (inline_chunk_.above != nullptr) {
inline_chunk_.above->below = &inline_chunk_;
}
if (size_ <= InlineBufferCapacity) {
top_chunk_ = &inline_chunk_;
top_ = this->inline_buffer() + size_;