mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 09:10:48 +01:00
[poincare] Fix bug when comparing expression
Change-Id: I8f5703672f9918fbe81483e40d7b014e6c98d6b6
This commit is contained in:
@@ -107,7 +107,7 @@ int DynamicHierarchy::compareToSameTypeExpression(const Expression * e) const {
|
||||
int n = e->numberOfOperands();
|
||||
for (int i = 1; i <= m; i++) {
|
||||
// The NULL node is the least node type.
|
||||
if (n <= i) {
|
||||
if (n < i) {
|
||||
return 1;
|
||||
}
|
||||
if (this->operand(m-i)->compareTo(e->operand(n-i)) != 0) {
|
||||
|
||||
Reference in New Issue
Block a user