Skip to content

Commit

Permalink
Removed windows warning
Browse files Browse the repository at this point in the history
Signed-off-by: ahcorde <[email protected]>
  • Loading branch information
ahcorde committed Sep 22, 2022
1 parent d1d0595 commit ea4289c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphics/src/Image_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit ea4289c

Please sign in to comment.