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

Lines changed: 5 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy