Fix a double out-by-one error.

This fixes the aliasing problem brought to light by the recent dead-code
removal work.

* taniwha dons a brown paper bag.
This commit is contained in:
Bill Currie 2012-12-20 16:33:01 +09:00
parent 580fba2cd1
commit 5ec4598fce

View file

@ -254,7 +254,7 @@ dagnode_deref_match (const dagnode_t *n, const daglabel_t *op,
int i;
for (i = 0; i < 2; i++) {
if (n->children[i + 1] != children[i])
if (n->children[i] != children[i + 1])
return 0;
}
return 1;