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

Commitcdfb1bd

Browse files
author
Artur Zakirov
committed
Added some comment
1 parent6ecaed9 commitcdfb1bd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎contrib/pg_trgm/trgm_gist.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,11 @@ gtrgm_distance(PG_FUNCTION_ARGS)
471471
*recheck=strategy==SubwordDistanceStrategyNumber;
472472
if (GIST_LEAF(entry))
473473
{/* all leafs contains orig trgm */
474+
/*
475+
* Prevent gcc optimizing the sml variable using volatile
476+
* keyword. Otherwise res can differ from the
477+
* subword_similarity_dist_op() function.
478+
*/
474479
float4volatilesml=cnt_sml(qtrg,key,*recheck);
475480
res=1.0-sml;
476481
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp