From fd43232bc9dca1fba83a516db2991870687a596a Mon Sep 17 00:00:00 2001 From: robocop Date: Tue, 25 Feb 2014 06:23:51 +0000 Subject: [PATCH] This bug comes from IB, maybe from the dawn of time (PVS-Studio). --- src/qli/compile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qli/compile.cpp b/src/qli/compile.cpp index 037b0df544..3a6ee1bf07 100644 --- a/src/qli/compile.cpp +++ b/src/qli/compile.cpp @@ -180,7 +180,7 @@ bool CMP_node_match( const qli_nod* node1, const qli_nod* node2) return CMP_node_match(node1->nod_arg[e_stt_value], node2->nod_arg[e_stt_value]); case nod_function: - if (node1->nod_arg[e_fun_function] != node1->nod_arg[e_fun_function]) + if (node1->nod_arg[e_fun_function] != node2->nod_arg[e_fun_function]) return false; return CMP_node_match(node1->nod_arg[e_fun_args], node2->nod_arg[e_fun_args]); }