From cc957e08543f11aa36dd9bd8247d6e55f6ae6378 Mon Sep 17 00:00:00 2001 From: Samuel Debionne Date: Sun, 24 Sep 2023 18:54:58 +0200 Subject: [PATCH] fix: Remove conversion warning in convolve_2d test --- test/core/image_processing/convolve_2d.cpp | 36 +++++++++++----------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/test/core/image_processing/convolve_2d.cpp b/test/core/image_processing/convolve_2d.cpp index cb6a96f66..96fc46944 100644 --- a/test/core/image_processing/convolve_2d.cpp +++ b/test/core/image_processing/convolve_2d.cpp @@ -65,28 +65,28 @@ void test_convolve_2d_with_image_using_float32_t() { gil::float32_t img[] = { - 0.1, 0.2, 0.1, 0.1, 0.4, 0.1, 0.76, 0.1, 0.1, - 0.1, 0.2, 0.1, 0.1, 0.4, 0.1, 0.5, 0.1, 0.1, - 0.1, 0.2, 0.1, 0.1, 0.4, 0.1, 0.5, 0.1, 0.1, - 0.1, 0.6, 0.6, 0.1, 0.54, 0.1, 0.5, 0.1, 0.1, - 0.1, 0.2, 0.1, 0.1, 0.4, 0.1, 0.5, 0.1, 0.1, - 0.1, 0.2, 0.1, 0.84, 0.4, 0.1, 0.5, 0.1, 0.1, - 0.1, 0.1, 0.1, 0.1, 0.4, 0.1, 0.5, 0.1, 0.1, - 0.1, 0.3, 0.1, 0.1, 0.4, 0.1, 0.32, 0.1, 0.1, - 0.1, 0.2, 0.1, 0.1, 0.4, 0.1, 0.21, 0.1, 0.1 + 0.1f, 0.2f, 0.1f, 0.1f, 0.4f, 0.1f, 0.76f, 0.1f, 0.1f, + 0.1f, 0.2f, 0.1f, 0.1f, 0.4f, 0.1f, 0.5f, 0.1f, 0.1f, + 0.1f, 0.2f, 0.1f, 0.1f, 0.4f, 0.1f, 0.5f, 0.1f, 0.1f, + 0.1f, 0.6f, 0.6f, 0.1f, 0.54f, 0.1f, 0.5f, 0.1f, 0.1f, + 0.1f, 0.2f, 0.1f, 0.1f, 0.4f, 0.1f, 0.5f, 0.1f, 0.1f, +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