2
0
mirror of https://github.com/boostorg/gil.git synced 2026-02-19 14:32:10 +00:00

[toolbox] Fix warning due to implicit int to uint8_t conversion

This commit is contained in:
Mateusz Łoskot
2018-10-24 17:59:24 +02:00
parent ed5010901f
commit 4284d2d4dd

View File

@@ -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<uint8_t> indices(width * height, Index);
vector<uint8_t> indices(width * height, 2);
// colors
vector<rgb8_pixel_t> palette(num_colors);