Skip to content

Commit cc957e0

Browse files
committed
fix: Remove conversion warning in convolve_2d test
1 parent 3d75bd7 commit cc957e0

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

test/core/image_processing/convolve_2d.cpp

+18-18
Original file line numberDiff line numberDiff line change
@@ -65,28 +65,28 @@ void test_convolve_2d_with_image_using_float32_t()
6565
{
6666
gil::float32_t img[] =
6767
{
68-
0.1, 0.2, 0.1, 0.1, 0.4, 0.1, 0.76, 0.1, 0.1,
69-
0.1, 0.2, 0.1, 0.1, 0.4, 0.1, 0.5, 0.1, 0.1,
70-
0.1, 0.2, 0.1, 0.1, 0.4, 0.1, 0.5, 0.1, 0.1,
71-
0.1, 0.6, 0.6, 0.1, 0.54, 0.1, 0.5, 0.1, 0.1,
72-
0.1, 0.2, 0.1, 0.1, 0.4, 0.1, 0.5, 0.1, 0.1,
73-
0.1, 0.2, 0.1, 0.84, 0.4, 0.1, 0.5, 0.1, 0.1,
74-
0.1, 0.1, 0.1, 0.1, 0.4, 0.1, 0.5, 0.1, 0.1,
75-
0.1, 0.3, 0.1, 0.1, 0.4, 0.1, 0.32, 0.1, 0.1,
76-
0.1, 0.2, 0.1, 0.1, 0.4, 0.1, 0.21, 0.1, 0.1
68+
0.1f, 0.2f, 0.1f, 0.1f, 0.4f, 0.1f, 0.76f, 0.1f, 0.1f,
69+
0.1f, 0.2f, 0.1f, 0.1f, 0.4f, 0.1f, 0.5f, 0.1f, 0.1f,
70+
0.1f, 0.2f, 0.1f, 0.1f, 0.4f, 0.1f, 0.5f, 0.1f, 0.1f,
71+
0.1f, 0.6f, 0.6f, 0.1f, 0.54f, 0.1f, 0.5f, 0.1f, 0.1f,
72+
0.1f, 0.2f, 0.1f, 0.1f, 0.4f, 0.1f, 0.5f, 0.1f, 0.1f,
73+
0.1f, 0.2f, 0.1f, 0.84f, 0.4f, 0.1f, 0.5f, 0.1f, 0.1f,
74+
0.1f, 0.1f, 0.1f, 0.1f, 0.4f, 0.1f, 0.5f,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