From 6fa63f17f934eb207428d030469459f4a1af7123 Mon Sep 17 00:00:00 2001 From: asfernandes Date: Thu, 21 Jan 2010 15:01:24 +0000 Subject: [PATCH] Fix the arithmetics thanks to Claudio --- src/jrd/par.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jrd/par.cpp b/src/jrd/par.cpp index 6681bc3287..bbdcc7fed2 100644 --- a/src/jrd/par.cpp +++ b/src/jrd/par.cpp @@ -1800,8 +1800,8 @@ static void par_partition_by(thread_db* tdbb, CompilerScratch* csb, jrd_nod*& gr for (unsigned i = 0; i < count; ++i) { - groupNode->nod_arg[count + i * count + i] = (jrd_nod*)(IPTR) false; // ascending - groupNode->nod_arg[count + i * count + count + i] = (jrd_nod*)(IPTR) rse_nulls_first; + groupNode->nod_arg[count + i] = (jrd_nod*)(IPTR) false; // ascending + groupNode->nod_arg[count * 2 + i] = (jrd_nod*)(IPTR) rse_nulls_first; } }