8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 10:43:03 +01:00

Correct inversion of node parameters verified by Claudio

This commit is contained in:
asfernandes 2008-09-04 16:04:42 +00:00
parent 6cac27ff09
commit d3a6c8b404

View File

@ -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<jrd_nod*>* 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<jrd_nod*>* vector = csb->csb_variables;
if (!vector || n >= vector->count() ||
!(node->nod_arg[e_var_variable] = (*vector)[n]))