[poincare] Fix bug when comparing expression

Change-Id: I8f5703672f9918fbe81483e40d7b014e6c98d6b6
This commit is contained in:
Émilie Feral
2017-10-09 11:33:06 +02:00
parent 80d69e2f8a
commit 0eaaa9f00d

View File

@@ -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) {