mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 10:03:03 +01:00
Correct inversion of node parameters verified by Claudio
This commit is contained in:
parent
6cac27ff09
commit
d3a6c8b404
@ -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]))
|
||||
|
Loading…
Reference in New Issue
Block a user