From 9b5776b373a9460c72e03b7a440f0d02cda011d6 Mon Sep 17 00:00:00 2001 From: Samuel Oberhofer Date: Mon, 6 Jun 2022 13:49:31 +0200 Subject: [PATCH] Fix missing Ampersand --- Uebung 2/Uebung2_2/doublyLinkedList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Uebung 2/Uebung2_2/doublyLinkedList.cpp b/Uebung 2/Uebung2_2/doublyLinkedList.cpp index 9a23ff0..d52d714 100644 --- a/Uebung 2/Uebung2_2/doublyLinkedList.cpp +++ b/Uebung 2/Uebung2_2/doublyLinkedList.cpp @@ -62,7 +62,7 @@ void DoublyLinkedList::append(DoublyLinkedList *appendingList) { } void DoublyLinkedList::splice(DoublyLinkedList *insertingList, int position) { - if (insertingList->head != NULL & insertingList->tail != NULL) { + if (insertingList->head != NULL && insertingList->tail != NULL) { ExtendedListItem *prev = NULL; ExtendedListItem *current = NULL; current = this->head;