fix bug in push

This commit is contained in:
2021-01-10 21:59:49 +01:00
parent 37b1e9bc05
commit 37a2584ffc

View File

@@ -9,7 +9,7 @@ TreiberStack::TreiberStack(ADTOperationQueue * queue) : Stack(queue) {
}
void TreiberStack::push(int element) {
Node * n;
Node * n = new Node(element);
Node * t;
while (true) {