mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 15:50:49 +01:00
[poincare] Fix TreeReference::setTo
This commit is contained in:
@@ -279,7 +279,9 @@ protected:
|
||||
}
|
||||
private:
|
||||
void setTo(const TreeReference & tr) {
|
||||
if (*this == tr) {
|
||||
/* We cannot use (*this)==tr because tr would need to be casted to
|
||||
* TreeReference<TreeNode>, which calls setTo and triggers an infinite loop */
|
||||
if (identifier() == tr.identifier()) {
|
||||
return;
|
||||
}
|
||||
TreeNode * currentNode = node();
|
||||
|
||||
Reference in New Issue
Block a user