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

Commit46a60ab

Browse files
committed
Suppress compiler warning in new contrib/pg_trgm code.
MSVC doesn't seem to like it when a constant initializer losesprecision upon being assigned.David Rowley
1 parent5f508b6 commit46a60ab

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

‎contrib/pg_trgm/trgm_regexp.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,14 @@
227227
* Numbers based on analysis of real-life texts.
228228
*/
229229
constfloat4penalties[8]= {
230-
1.0,/* "aaa" */
231-
3.5,/* "aa " */
232-
0.0,/* "a a" (impossible) */
233-
0.0,/* "a " (impossible) */
234-
4.2,/* " aa" */
235-
2.1,/* " a " */
236-
25.0,/* " a" */
237-
0.0/* " " (impossible) */
230+
1.0f,/* "aaa" */
231+
3.5f,/* "aa " */
232+
0.0f,/* "a a" (impossible) */
233+
0.0f,/* "a " (impossible) */
234+
4.2f,/* " aa" */
235+
2.1f,/* " a " */
236+
25.0f,/* " a" */
237+
0.0f/* " " (impossible) */
238238
};
239239

240240
/* Struct representing a single pg_wchar, converted back to multibyte form */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp