Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bdd83b1

Browse files
committed
increase readability a bit
1 parent 9e873ec commit bdd83b1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/rum_arr_utils.c

+5-2
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,8 @@ rum_anyarray_consistent(PG_FUNCTION_ARGS)
367367

368368
if (intersection > 0)
369369
{
370+
float8 sml;
371+
370372
/* extract array's length from addInfo */
371373
for (i = 0; i < nkeys; i++)
372374
{
@@ -382,8 +384,9 @@ rum_anyarray_consistent(PG_FUNCTION_ARGS)
382384

383385
INIT_DUMMY_SIMPLE_ARRAY(&sa, nentries);
384386
INIT_DUMMY_SIMPLE_ARRAY(&sb, nkeys);
385-
res = getSimilarity(&sa, &sb, intersection) >=
386-
RumArraySimilarityThreshold;
387+
sml = getSimilarity(&sa, &sb, intersection);
388+
389+
res = (sml >= RumArraySimilarityThreshold);
387390
}
388391
else
389392
res = false;

0 commit comments

Comments
 (0)