From ea4289c47fa8cf519199951efbb6199eedd113d7 Mon Sep 17 00:00:00 2001 From: ahcorde Date: Thu, 22 Sep 2022 08:34:16 +0200 Subject: [PATCH] Removed windows warning Signed-off-by: ahcorde --- graphics/src/Image_TEST.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphics/src/Image_TEST.cc b/graphics/src/Image_TEST.cc index d1bd29a2f..c8b0ac6e7 100644 --- a/graphics/src/Image_TEST.cc +++ b/graphics/src/Image_TEST.cc @@ -611,7 +611,7 @@ TEST_F(ImageTest, Grayscale) EXPECT_EQ(bits, img.BPP()); EXPECT_EQ(width * bits / 8u, img.Pitch()); EXPECT_EQ(common::Image::PixelFormatType::L_INT8, img.PixelFormat()); - math::Color maxColor(0.847, 0.847, 0.847); + math::Color maxColor(0.847f, 0.847f, 0.847f); EXPECT_NEAR(maxColor.R(), img.MaxColor().R(), 1e-3); EXPECT_NEAR(maxColor.G(), img.MaxColor().G(), 1e-3); EXPECT_NEAR(maxColor.B(), img.MaxColor().B(), 1e-3); @@ -631,7 +631,7 @@ TEST_F(ImageTest, Grayscale) EXPECT_EQ(bits, img.BPP()); EXPECT_EQ(width * bits / 8u, img.Pitch()); EXPECT_EQ(common::Image::PixelFormatType::L_INT16, img.PixelFormat()); - math::Color maxColor(0.847, 0.847, 0.847); + math::Color maxColor(0.847f, 0.847f, 0.847f); EXPECT_NEAR(maxColor.R(), img.MaxColor().R(), 1e-3); EXPECT_NEAR(maxColor.G(), img.MaxColor().G(), 1e-3); EXPECT_NEAR(maxColor.B(), img.MaxColor().B(), 1e-3);