From 4284d2d4ddded3e797f190cd661601ab216f0f07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20=C5=81oskot?= Date: Wed, 24 Oct 2018 17:59:24 +0200 Subject: [PATCH] [toolbox] Fix warning due to implicit int to uint8_t conversion --- toolbox/test/indexed_image_test.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/toolbox/test/indexed_image_test.cpp b/toolbox/test/indexed_image_test.cpp index 69c750078..892a549ab 100644 --- a/toolbox/test/indexed_image_test.cpp +++ b/toolbox/test/indexed_image_test.cpp @@ -152,13 +152,12 @@ BOOST_AUTO_TEST_CASE( index_image_test ) BOOST_AUTO_TEST_CASE(index_image_view_test) { // generate some data - int width = 640; - int height = 480; - int num_colors = 3; - int Index = 2; + std::size_t const width = 640; + std::size_t const height = 480; + std::size_t const num_colors = 3; // indices - vector indices(width * height, Index); + vector indices(width * height, 2); // colors vector palette(num_colors);