mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
pgindent run for 9.6
This commit is contained in:
@ -296,6 +296,7 @@ gtrgm_consistent(PG_FUNCTION_ARGS)
|
||||
|
||||
if (GIST_LEAF(entry))
|
||||
{ /* all leafs contains orig trgm */
|
||||
|
||||
/*
|
||||
* Prevent gcc optimizing the tmpsml variable using volatile
|
||||
* keyword. Otherwise comparison of nlimit and tmpsml may give
|
||||
@ -476,12 +477,14 @@ gtrgm_distance(PG_FUNCTION_ARGS)
|
||||
*recheck = strategy == WordDistanceStrategyNumber;
|
||||
if (GIST_LEAF(entry))
|
||||
{ /* all leafs contains orig trgm */
|
||||
|
||||
/*
|
||||
* Prevent gcc optimizing the sml variable using volatile
|
||||
* keyword. Otherwise res can differ from the
|
||||
* word_similarity_dist_op() function.
|
||||
*/
|
||||
float4 volatile sml = cnt_sml(qtrg, key, *recheck);
|
||||
|
||||
res = 1.0 - sml;
|
||||
}
|
||||
else if (ISALLTRUE(key))
|
||||
|
Reference in New Issue
Block a user