From c9cbd9693d043f618f22bea3f29fae9e8dbb17bd Mon Sep 17 00:00:00 2001 From: nadavi Date: Wed, 22 Apr 2020 12:29:40 -0600 Subject: [PATCH] fix type warnings --- vtkm/rendering/EncodePNG.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vtkm/rendering/EncodePNG.cxx b/vtkm/rendering/EncodePNG.cxx index b3004e5ed..11dbb14ed 100644 --- a/vtkm/rendering/EncodePNG.cxx +++ b/vtkm/rendering/EncodePNG.cxx @@ -29,7 +29,8 @@ vtkm::UInt32 EncodePNG(std::vector const& image, { // The default is 8 bit RGBA; does anyone care to have more options? // We can certainly add them in a backwards-compatible way if need be. - vtkm::UInt32 error = vtkm::png::lodepng::encode(output_png, image, width, height); + vtkm::UInt32 error = vtkm::png::lodepng::encode( + output_png, image, static_cast(width), static_cast(height)); if (error) { VTKM_LOG_S(vtkm::cont::LogLevel::Error,