From d3a6c8b404fb15f7362b88bc9fd2716b3cb981d4 Mon Sep 17 00:00:00 2001 From: asfernandes Date: Thu, 4 Sep 2008 16:04:42 +0000 Subject: [PATCH] Correct inversion of node parameters verified by Claudio --- src/jrd/cmp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jrd/cmp.cpp b/src/jrd/cmp.cpp index c68b1ef183..6e5dd605a3 100644 --- a/src/jrd/cmp.cpp +++ b/src/jrd/cmp.cpp @@ -3458,7 +3458,7 @@ jrd_nod* CMP_pass1(thread_db* tdbb, CompilerScratch* csb, jrd_nod* node) case nod_variable: { - USHORT n = (USHORT)(IPTR) node->nod_arg[e_init_var_id]; + USHORT n = (USHORT)(IPTR) node->nod_arg[e_var_id]; vec* vector = csb->csb_variables; if (!vector || n >= vector->count() || !(node->nod_arg[e_var_variable] = (*vector)[n])) @@ -3470,7 +3470,7 @@ jrd_nod* CMP_pass1(thread_db* tdbb, CompilerScratch* csb, jrd_nod* node) case nod_init_variable: { - USHORT n = (USHORT)(IPTR) node->nod_arg[e_var_id]; + USHORT n = (USHORT)(IPTR) node->nod_arg[e_init_var_id]; vec* vector = csb->csb_variables; if (!vector || n >= vector->count() || !(node->nod_arg[e_var_variable] = (*vector)[n]))