mirror of https://github.com/postgres/postgres
Suppress compiler warning in new contrib/pg_trgm code.
MSVC doesn't seem to like it when a constant initializer loses precision upon being assigned. David Rowley
This commit is contained in:
parent
5f508b6dea
commit
46a60abfe9
|
@ -227,14 +227,14 @@
|
||||||
* Numbers based on analysis of real-life texts.
|
* Numbers based on analysis of real-life texts.
|
||||||
*/
|
*/
|
||||||
const float4 penalties[8] = {
|
const float4 penalties[8] = {
|
||||||
1.0, /* "aaa" */
|
1.0f, /* "aaa" */
|
||||||
3.5, /* "aa " */
|
3.5f, /* "aa " */
|
||||||
0.0, /* "a a" (impossible) */
|
0.0f, /* "a a" (impossible) */
|
||||||
0.0, /* "a " (impossible) */
|
0.0f, /* "a " (impossible) */
|
||||||
4.2, /* " aa" */
|
4.2f, /* " aa" */
|
||||||
2.1, /* " a " */
|
2.1f, /* " a " */
|
||||||
25.0, /* " a" */
|
25.0f, /* " a" */
|
||||||
0.0 /* " " (impossible) */
|
0.0f /* " " (impossible) */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Struct representing a single pg_wchar, converted back to multibyte form */
|
/* Struct representing a single pg_wchar, converted back to multibyte form */
|
||||||
|
|
Loading…
Reference in New Issue