Skip to content
Snippets Groups Projects
Commit b744b621 authored by Federico's avatar Federico
Browse files

Fix tail pointer being private

parent 31fcbffd
No related branches found
No related tags found
2 merge requests!40Update to Miosix 2.7,!17Draft: Improved miosix build system and fixed cmake scripts
......@@ -740,7 +740,7 @@ public:
if(list==nullptr || list->empty()) IntrusiveListBase::fail();
#endif //INTRUSIVE_LIST_ERROR_CHECK
if(cur!=nullptr) cur=cur->prev;
else cur=list->tail; //Special case: decrementing end()
else cur=list->IntrusiveListBase::back(); //Special case: decrementing end()
return *this;
}
......@@ -761,7 +761,7 @@ public:
#endif //INTRUSIVE_LIST_ERROR_CHECK
iterator result=*this;
if(cur!=nullptr) cur=cur->prev;
else cur=list->tail; //Special case: decrementing end()
else cur=list->IntrusiveListBase::back(); //Special case: decrementing end()
return result;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment