Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbdd83b1

Browse files
committed
increase readability a bit
1 parent9e873ec commitbdd83b1

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+
float8sml;
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)

[8]ページ先頭

©2009-2025 Movatter.jp