From 5ec4598fce7cb9eb93a53c6ea89fb4dd99e1d105 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 20 Dec 2012 16:33:01 +0900 Subject: [PATCH] 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. --- tools/qfcc/source/dags.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qfcc/source/dags.c b/tools/qfcc/source/dags.c index 76afc84df..3e5f520c2 100644 --- a/tools/qfcc/source/dags.c +++ b/tools/qfcc/source/dags.c @@ -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;