mirror of
https://github.com/13hannes11/UU_la_parallel_programming_practical_assignments.git
synced 2024-09-04 00:50:58 +02:00
fix bug in push
This commit is contained in:
@@ -9,7 +9,7 @@ TreiberStack::TreiberStack(ADTOperationQueue * queue) : Stack(queue) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void TreiberStack::push(int element) {
|
void TreiberStack::push(int element) {
|
||||||
Node * n;
|
Node * n = new Node(element);
|
||||||
Node * t;
|
Node * t;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|||||||
Reference in New Issue
Block a user