mirror of
https://github.com/13hannes11/UU_la_parallel_programming_practical_assignments.git
synced 2024-09-04 00:50:58 +02:00
fix valdiate in optimistic list
This commit is contained in:
@@ -114,7 +114,7 @@ bool OptimisticSet::ctn(int element) {
|
||||
|
||||
bool OptimisticSet::validate(Node* p, Node* c) {
|
||||
Node* n = this->first;
|
||||
while (n->is_smaller_than(p)) {
|
||||
while(n->next != c && n->next != 0) {
|
||||
n = n->next;
|
||||
}
|
||||
if ((n == p) && (p->next == c)) {
|
||||
|
||||
Reference in New Issue
Block a user